开发一个简单的struts项目,在部署到tomcat中后启动服务器,报错,主要错误如题所示,具体错误有:
严重: Exception starting filter struts2
Unable to load configuration. - bean - jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/struts2/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178
。。。。。。(中间是一大段错误提示)
严重: Error filterStart
2009-5-16 22:22:09 org.apache.catalina.core.StandardContext start
严重: Context [/struts2] startup failed due to previous errors
struts2.0的版本也是在不断的更新,现在我使用的是2.1.6。在项目中加包的时候,书中描述是加载5个基本包
commos-logging,freemarker,ognl,struts2-core,xwork五个包
上面错误的解决原因:(1)在struts.xml中action中的包路径出错。
(2)在工程中导入一个commons-fileupload的包。
以上错误处理后,工程正常运行。对J2EE进行开发时,感觉在VS下开发是越来越难了!!!