您的位置:首页 > 其它

整合SSH2出错

2010-06-10 23:51 239 查看
严重: Dispatcher initialization failed

Unable to load configuration. - bean - jar:file:/D:/server/Tomcat%205.5/webapps/TestStruts2/WEB-INF/lib/struts2-core-2.1.8.jar!/struts-default.xml:47:178

at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)

......

Caused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/D:/server/Tomcat%205.5/webapps/TestStruts2/WEB-INF/lib/struts2-core-2.1.8.jar!/struts-default.xml:47:178

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:221)

......

Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/RequestContext
......

2010-5-10 15:55:30 org.apache.catalina.core.StandardContext filterStart

严重: Exception starting filter struts2

Unable to load configuration. - bean - jar:file:/D:/server/Tomcat%205.5/webapps/TestStruts2/WEB-INF/lib/struts2-core-2.1.8.jar!/struts-default.xml:47:178

......

Caused by: Unable to load configuration. - bean - jar:file:/D:/server/Tomcat%205.5/webapps/TestStruts2/WEB-INF/lib/struts2-core-2.1.8.jar!/struts-default.xml:47:178

......

Caused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/D:/server/Tomcat%205.5/webapps/TestStruts2/WEB-INF/lib/struts2-core-2.1.8.jar!/struts-default.xml:47:178

......

Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/RequestContext

......

2010-5-10 15:55:30 org.apache.catalina.core.StandardContext start

严重: Error filterStart

2010-5-10 15:55:30 org.apache.catalina.core.StandardContext start

严重: Context [/TestStruts2] startup failed due to previous errors

2010-5-10 15:55:30 org.apache.catalina.core.ApplicationContext log


解决办法:打开Eclipse中的 Project->Properties->Java Build Path 菜单,

在右侧面板中
的"Source"选项卡,在Excluded中加入"**/.svn/**"。

也就是把.svn文件夹从编译路径中排除,这样就不会出现上面的
问题了

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息