配置STRUTS2出错,高手来帮忙,多谢

2010-5-1015:55:30com.opensymphony.xwork2.util.logging.commons.CommonsLoggererror严重:Di... 2010-5-10 15:55:30 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: 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
展开
 我来答
百度网友561a016
2010-05-13 · 超过24用户采纳过TA的回答
知道答主
回答量:58
采纳率:0%
帮助的人:50.5万
展开全部
由Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/RequestContext 可知,
commons-fileupload-1.0.jar文件没有放到Web服务器的发布目录的lib目录下,请从apache网站下载一个使用即可。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式