首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

高手解答struts有关问题

2013-09-11 
高手解答struts问题2007-3-2117:01:11org.apache.catalina.core.StandardContextfilterStart严重:Exceptio

高手解答struts问题
2007-3-21   17:01:11   org.apache.catalina.core.StandardContext   filterStart
严重:   Exception   starting   filter   struts2
Unable   to   load   bean:   type:com.opensymphony.xwork2.ObjectFactory   class:org.apache.struts2.spring.StrutsSpringObjectFactory   -   bean   -   jar:file:/d:/Tomcat/webapps/Struts2_HelloWorld/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:132
at   com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:209)
at   org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at   com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:131)
at   com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at   org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
at   org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
at   org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at   org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at   org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at   org.apache.catalina.core.ApplicationFilterConfig. <init> (ApplicationFilterConfig.java:77)
at   org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
at   org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
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.deployWAR(HostConfig.java:809)
at   org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at   org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at   org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
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(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown   Source)
at   java.lang.reflect.Method.invoke(Unknown   Source)
at   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused   by:   java.lang.NoClassDefFoundError:   org/springframework/context/ApplicationContextAware
at   java.lang.ClassLoader.defineClass1(Native   Method)
at   java.lang.ClassLoader.defineClass(Unknown   Source)
at   java.security.SecureClassLoader.defineClass(Unknown   Source)
at   org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)


at   org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
at   java.lang.ClassLoader.loadClassInternal(Unknown   Source)
at   java.lang.ClassLoader.defineClass1(Native   Method)
at   java.lang.ClassLoader.defineClass(Unknown   Source)
at   java.security.SecureClassLoader.defineClass(Unknown   Source)
at   org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)
at   org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
at   com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:139)
at   com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:181)
...   33   more


[解决办法]
spring的类没找到啊
楼主有把路径和版本放对吗?

检查一下看看
[解决办法]
Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware

热点排行