SSH项目,struts2,spring3,heibernate3. 启动时报如下错误,请高手帮忙
严重:Exceptionstartingfilterstruts2Unabletoloadconfiguration.-bean-jar:file:/E:/软件/Tomc...
严重: Exception starting filter struts2
Unable to load configuration. - bean - jar:file:/E:/软件/Tomcat%206.0/webapps/goods_prj/WEB-INF/lib/struts2-spring-plugin-2.1.8.jar!/struts-plugin.xml:29:132
Caused by: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean - jar:file:/E:/软件/Tomcat%206.0/webapps/goods_prj/WEB-INF/lib/struts2-spring-plugin-2.1.8.jar!/struts-plugin.xml:29:132
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 31 more
Caused by: java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/classloader/ReloadingClassLoader
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getDeclaredConstructors(Class.java:1836)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:212)
... 34 more
Caused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.util.classloader.ReloadingClassLoader
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 38 more
2011-10-20 11:17:03 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2011-10-20 11:17:03 org.apache.catalina.core.StandardContext start
严重: Context [/goods_prj] startup failed due to previous errors
2011-10-20 11:17:03 org.apache.catalina.core.ApplicationContext log
jia包如下:commons-fileupload-1.2.1.jar
commons-logging-1.0.4.jar
freemarker-2.3.13.jar
ognl-2.6.11.jar
struts2-core-2.1.6.jar
xwork-2.1.2.jar
hibernate3.jar
ant-1.6.5.jar
ant-antlr-1.6.5.jar
ant-junit-1.6.5.jar
ant-launcher-1.6.5.jar
ant-swing-1.6.5.jar
antlr-2.7.6.jar
asm-attrs.jar
asm.jar
c3p0-0.9.0.jar
cglib-2.1.3.jar
checkstyle-all.jar
cleanimports.jar
commons-collections-2.1.1.jar
concurrent-1.3.2.jar
connector.jar
dom4j-1.6.1.jar
ehcache-1.2.jar
jaas.jar
jacc-1_0-fr.jar
javassist.jar
jaxen-1.1-beta-7.jar
jboss-cache.jar
jboss-common.jar
jboss-jmx.jar
jboss-system.jar
jdbc2_0-stdext.jar
jgroups-2.2.8.jar
jta.jar
junit-3.8.1.jar
log4j-1.2.11.jar
oscache-2.1.jar
proxool-0.8.3.jar
swarmcache-1.0rc2.jar
syndiag2.jar
versioncheck.jar
xerces-2.6.2.jar
xml-apis.jar
spring.jar
aspectjrt.jar
aspectjweaver.jar
mysql-connector-java-3.1.10-bin.jar
struts2-spring-plugin-2.1.6.jar 展开
Unable to load configuration. - bean - jar:file:/E:/软件/Tomcat%206.0/webapps/goods_prj/WEB-INF/lib/struts2-spring-plugin-2.1.8.jar!/struts-plugin.xml:29:132
Caused by: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean - jar:file:/E:/软件/Tomcat%206.0/webapps/goods_prj/WEB-INF/lib/struts2-spring-plugin-2.1.8.jar!/struts-plugin.xml:29:132
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 31 more
Caused by: java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/classloader/ReloadingClassLoader
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getDeclaredConstructors(Class.java:1836)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:212)
... 34 more
Caused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.util.classloader.ReloadingClassLoader
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 38 more
2011-10-20 11:17:03 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2011-10-20 11:17:03 org.apache.catalina.core.StandardContext start
严重: Context [/goods_prj] startup failed due to previous errors
2011-10-20 11:17:03 org.apache.catalina.core.ApplicationContext log
jia包如下:commons-fileupload-1.2.1.jar
commons-logging-1.0.4.jar
freemarker-2.3.13.jar
ognl-2.6.11.jar
struts2-core-2.1.6.jar
xwork-2.1.2.jar
hibernate3.jar
ant-1.6.5.jar
ant-antlr-1.6.5.jar
ant-junit-1.6.5.jar
ant-launcher-1.6.5.jar
ant-swing-1.6.5.jar
antlr-2.7.6.jar
asm-attrs.jar
asm.jar
c3p0-0.9.0.jar
cglib-2.1.3.jar
checkstyle-all.jar
cleanimports.jar
commons-collections-2.1.1.jar
concurrent-1.3.2.jar
connector.jar
dom4j-1.6.1.jar
ehcache-1.2.jar
jaas.jar
jacc-1_0-fr.jar
javassist.jar
jaxen-1.1-beta-7.jar
jboss-cache.jar
jboss-common.jar
jboss-jmx.jar
jboss-system.jar
jdbc2_0-stdext.jar
jgroups-2.2.8.jar
jta.jar
junit-3.8.1.jar
log4j-1.2.11.jar
oscache-2.1.jar
proxool-0.8.3.jar
swarmcache-1.0rc2.jar
syndiag2.jar
versioncheck.jar
xerces-2.6.2.jar
xml-apis.jar
spring.jar
aspectjrt.jar
aspectjweaver.jar
mysql-connector-java-3.1.10-bin.jar
struts2-spring-plugin-2.1.6.jar 展开
4个回答
展开全部
struts2-spring-plugin-2.1.8.jar
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
spring的filter配置错误可能
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
struts2-spring-plugin-2.1.8.jar 加上
再在struts配置文件上加上
<constant name="struts.objectFactory" value="spring"/>
再在struts配置文件上加上
<constant name="struts.objectFactory" value="spring"/>
追问
还是不行啊
struts2-spring-plugin-2.1.8.jar
都有了啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询