日期:2014-05-19  浏览次数:20693 次

struts2的问题java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.Filter
我是新手,写的第一个,按照视频弄的
2010-10-21 8:48:35 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/struts2]
2010-10-21 8:48:36 org.apache.catalina.core.StandardContext stop
信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/struts2] has not been started
2010-10-21 8:48:36 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.Struts2.dispatcher.FilterDispatcher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:249)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Unknown Source)
2010-10-21 8:48:36 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2010-10-21 8:48:36 org.apache.catalina.core.StandardContext start
严重: Context [/struts2] startup failed due to previous errors


------解决方案--------------------
struts2的JAR放里面了么?
顺便把WEB.XML的内容打出来
------解决方案--------------------
java.lang.ClassNotFoundException: org.apache.Struts2.dispatcher.FilterDispatcher

里面的struts2是大写的。

而实际是小写的:org.apache.struts2.dispatcher.FilterDispatcher