0
我使用Intellj Idea(版本:2017.2.4)作爲My Java IDE,並將其部署到Tomcat(版本:9.0.1)。這是一個簡單的Struts2(版本:2.5.13)項目。 我成功部署了項目,並打開了index.jsp。發生這個問題。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
它說,是與Struts2的的lib.But一些錯誤我把他們從Struts2的的官方網站。 我現在沒有什麼不對。幫助我PLZ。
可能的重複[爲什麼我無法在jdk9 win10中運行struts2.5.13](https://stackoverflow.com/questions/46643827/why-i-cant-run-struts2-5-13-在-jdk9-win10) –