为了账号安全,请及时绑定邮箱和手机立即绑定

运行时报错

6月 05, 2018 11:37:43 下午 org.apache.catalina.core.StandardWrapperValve invoke

严重: Servlet.service() for servlet [default] in context with path [/helloworld] threw exception

java.nio.file.InvalidPathException: Illegal char <:> at index 3: jar:file:\E:\java数据\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\helloworld\WEB-INF\lib\struts2-core-2.3.24.jar

at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)

at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)

at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)

at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)

at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)

at java.base/java.io.File.toPath(File.java:2300)

at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:951)

at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:216)

at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:148)

at java.base/java.util.jar.JarFile.<init>(JarFile.java:324)

at java.base/java.util.jar.JarFile.<init>(JarFile.java:295)

at java.base/java.util.jar.JarFile.<init>(JarFile.java:234)

at com.opensymphony.xwork2.util.fs.JarEntryRevision.needsReloading(JarEntryRevision.java:76)

at com.opensymphony.xwork2.util.fs.DefaultFileManager.fileNeedsReloading(DefaultFileManager.java:66)

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:397)

at org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:169)

at com.opensymphony.xwork2.config.ConfigurationManager.needReloadContainerProviders(ConfigurationManager.java:215)

at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:179)

at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:73)

at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967)

at org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:80)

at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:89)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:412)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1385)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.base/java.lang.Thread.run(Thread.java:844)


正在回答

3 回答

struts版本问题,下载新版本的struts2(struts-2.5.17),网址:https://struts.apache.org/download.cgi#struts2517

0 回复 有任何疑惑可以回复我~

感觉跟struts.xml配置的路径有关系

0 回复 有任何疑惑可以回复我~

建议你发一下源码

1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

运行时报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信