2 qq 33404611 qq_33404611 于 2016.09.21 23:23 提问

struts配置出现问题,连index.jsp都进不去 2C

严重: Exception starting filter struts2
java.lang.NoSuchMethodError: com.opensymphony.xwork2.config.ConfigurationManager.addConfigurationProvider(Lcom/opensymphony/xwork2/config/ConfigurationProvider;)V
at org.apache.struts2.dispatcher.Dispatcher.init_DefaultProperties(Dispatcher.java:307)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:408)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4830)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5510)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1897)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
九月 21, 2016 11:19:49 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
九月 21, 2016 11:19:49 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/easy] startup failed due to previous errors
九月 21, 2016 11:19:49 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Workspaces.metadata.me_tcat7\webapps\easy has finished in 3,141 ms
九月 21, 2016 11:19:49 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Workspaces.metadata.me_tcat7\webapps\examples

5个回答

w15868676598
w15868676598   2016.09.22 16:52

NoSuchMethodError异常表示没有找打这个方法的错误,应该是jar的问题。

caozhy
caozhy   Ds   Rxr 2016.09.21 23:54
Solitary_J
Solitary_J   2016.09.22 10:10

struts2的前置转发器是Struts2PrepareAndExcuteFilter

yangweijia123
yangweijia123   2016.09.22 22:37

项目部署完毕了,看下tomcat下项目lib目录下jar包是不是部署进去了,报的错看应该是没有找到这个方法

lv5751394
lv5751394   2016.09.23 16:41

应该是jar包有问题

Csdn user default icon
上传中...
上传图片
插入图片