struts2 访问action时总是404错误

来源:百度知道 编辑:UC知道 时间:2024/06/21 22:57:31
信息: Parsing configuration file [struts-default.xml]
2009-4-18 3:39:13 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/D:/tomcat6/webapps/purchase/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72
。。。。。。。。。
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/D:/tomcat6/webapps/purchase/WEB-INF/lib/struts2-core-2.0.6.jar!/struts-default.xml:8:69 - bean - jar:file:/D:/tomcat6/webapps/purchase/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:194)
... 33 more
2009-4-18 3:39:13 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2009-4-18 3:39:13 org.apache.catalina.core.StandardContext s

首先检查你的struts的jar包是不是有五个!
还有就是你的struts.xml文件是否配置正确!
最好是把代码贴出来看看!

这样看你的异常好象是包出了问题!

Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/D:/tomcat6/webapps/purchase/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72

是你的struts文件配置错误.

没代码怎么看