问题描述
tomcat5.5集成s2sh项目启动时报StrutsPrepareAndExecuteFilter找不到错误!2011-1-10 14:51:41 org.apache.catalina.core.StandardContext filterStart严重: Exception starting filter struts2java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:211)at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3540)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4110)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:589)at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:536)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)at org.apache.catalina.core.StandardService.start(StandardService.java:450)at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)at org.apache.catalina.startup.Catalina.start(Catalina.java:537)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)我的JAR包:我的WEB.XML配置:用的JDK是1.6的。IDE用的INTELLIJ IDEA10.0 怎么解决。
解决方案
1.你的struts2的jar太老了?2.jar根本没有部署到java 的classpath下?
解决方案二:
建议更新到新版本的struts各包,现在是2.2.1.1
解决方案三:
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter找不到这个类,看看jar包这个类有没有