Struts2架包异常
1。只导struts2-core-2.1.8.jar
启动tomcat,异常如下:
Unable to load configuration. - bean - jar:file:/F:/tomcat/webapps/DangDangExec/WEB-INF/lib/struts2-core-2.1.8.jar!/struts-default.xml:53:89at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
4.再添加freemarker-2.3.15.jar
启动tomcat,无异常!
综上:
struts2需要以上4个架包:
struts2-core-2.1.8.jar
xwork-core-2.1.6.jar
commons-fileupload-1.2.1.jar
freemarker-2.3.15.jar