第一次搭建struts2

来源:百度文库 编辑:神马文学网 时间:2024/04/29 23:31:50
今天第一次搭建struts2框架

在写strut2代码前要先将几个包导入工程的webContent/WEB-INF/lib文件夹中,教程中指出的只有5个包

1.commons-logging-1.0.4.jar

2.freemarker.jar

3.ognl-2.6.11.jar

4.struts2-core-2.1.8.jar

5.xwork-2.1.6.jar

然而在写完代码启动服务器时却发生了一些严重的错误

严重: 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

解决方法:再引入一个包commons-fileupload-1.2.1.jar