2017-10-19 5 views
0

J'utilise Intellj Idea (version: 2017.2.4) en tant que Mon Java IDE et je l'ai déployé sur Tomcat (version: 9.0.1). Il s'agit d'un simple projet Struts2 (version: 2.5.13). J'ai déployé le projet avec succès et quand j'ai ouvert index.jsp. Ce problème est survenu.InvalidPathException struts2

HTTP Status 500 – Internal Server Error 

Type Exception Report 

Message Illegal char <:> at index 3: jar:file:\D:\homework\struct\ideas\20171019exp3\out\artifacts\20171019exp3_war_exploded\WEB-INF\lib\struts2-core-2.5.13.jar 

Description The server encountered an unexpected condition that prevented it from fulfilling the request. 

Exception 

java.nio.file.InvalidPathException: Illegal char <:> at index 3: jar:file:\D:\homework\struct\ideas\20171019exp3\out\artifacts\20171019exp3_war_exploded\WEB-INF\lib\struts2-core-2.5.13.jar 
    java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) 
    java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) 
    java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) 
    java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92) 
    java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229) 
    java.base/java.io.File.toPath(File.java:2300) 
    java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:951) 
    java.base/java.util.zip.ZipFile.<init>(ZipFile.java:216) 
    java.base/java.util.zip.ZipFile.<init>(ZipFile.java:148) 
    java.base/java.util.jar.JarFile.<init>(JarFile.java:324) 
    java.base/java.util.jar.JarFile.<init>(JarFile.java:295) 
    java.base/java.util.jar.JarFile.<init>(JarFile.java:234) 
    com.opensymphony.xwork2.util.fs.JarEntryRevision.needsReloading(JarEntryRevision.java:73) 
    com.opensymphony.xwork2.util.fs.DefaultFileManager.fileNeedsReloading(DefaultFileManager.java:62) 
    com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:425) 
    org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:163) 
    com.opensymphony.xwork2.config.ConfigurationManager.needReloadContainerProviders(ConfigurationManager.java:208) 
    com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:174) 
    com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) 
    org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:960) 
    org.apache.struts2.dispatcher.ExecuteOperations.executeStaticResourceRequest(ExecuteOperations.java:59) 
    org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:130) 
Note The full stack trace of the root cause is available in the server logs. 

Apache Tomcat/9.0.1 

Il dit qu'il ya quelque chose de mal avec sommes lib.But du Struts2 je les ai obtenus à partir du site officiel de Struts2. Je ne sais pas ce qui ne va pas. Aidez-moi plz.

+0

Possible copie de [Pourquoi je ne peux pas exécuter struts2.5.13 dans jdk9 win10] (https://stackoverflow.com/questions/46643827/why-i-cant-run-struts2-5-13- in-jdk9-win10) –

Répondre