struts2的org.apache.struts2.dispatcher.FilterDispatcher异常 5
刚开始学习struts2.0现在按照例子做好后开启tomcat6结果会报下面的异常,请高手指点:严重的:Exceptionstartingfilterstruts2jav...
刚开始学习struts2.0现在按照例子做好后开启tomcat6结果会报下面的异常,请高手指点:
严重的: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1200)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:247)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:395)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:106)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3692)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4341)
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.deployDirectory(HostConfig.java:919)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:882)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1137)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
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:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
2009/7/23 上午 08:44:22 org.apache.catalina.core.StandardContext start
严重的: Error filterStart
2009/7/23 上午 08:44:22 org.apache.catalina.core.StandardContext start
严重的: Context [/zxy] startup failed due to previous errors
2009/7/23 上午 08:44:22 org.apache.coyote.http11.Http11Protocol start 展开
严重的: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1200)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:247)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:395)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:106)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3692)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4341)
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.deployDirectory(HostConfig.java:919)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:882)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1137)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
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:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
2009/7/23 上午 08:44:22 org.apache.catalina.core.StandardContext start
严重的: Error filterStart
2009/7/23 上午 08:44:22 org.apache.catalina.core.StandardContext start
严重的: Context [/zxy] startup failed due to previous errors
2009/7/23 上午 08:44:22 org.apache.coyote.http11.Http11Protocol start 展开
6个回答
展开全部
非常让我匪夷所思的是,struts lib 下还有一个struts-core-1.3.5.jar的包
我一开始一看struts-core就把它粘上去了
跟你的报错一样
后来把struts2-core-2.0.14.jar贴了上去,就好了
太贱了~
怎么设计的
我一开始一看struts-core就把它粘上去了
跟你的报错一样
后来把struts2-core-2.0.14.jar贴了上去,就好了
太贱了~
怎么设计的
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
struts2 至少需要5个核心的jar文件:、
struts2-core
xwork
ognl
freemaker
commonds-logging
看看少了哪个
struts2-core
xwork
ognl
freemaker
commonds-logging
看看少了哪个
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
函数库不完整,缺少jar包
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
去下一个struts2-core的jar包,放在你的lib文件夹下面!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询