日期:2014-05-20  浏览次数:20844 次

web项目异常求解
java.lang.NoClassDefFoundError:   org/apache/struts2/util/ObjectFactoryDestroyable
at   org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:263)
at   org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:238)
at   org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:332)
at   org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3731)
at   org.apache.catalina.core.StandardContext.stop(StandardContext.java:4493)
at   org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1097)
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(Thread.java:619)
Caused   by:   java.lang.ClassNotFoundException:   org.apache.struts2.util.ObjectFactoryDestroyable
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at   java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
...   14   more


------解决方案--------------------
struts2-core-2.1.8.jar

没有struts2的核心包