严重: Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/D:/Program Fil

严重: Dispatcher initialization failed
Unable to load configuration. - bean - jar:file:/C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/Struts2Demo01/WEB-INF/lib/struts2-core-2.1.8.jar!/struts-default.xml:47:178
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)

解决办法:

除了
commons-logging-1.0.4.jar
freemarker-2.3.12.jar
ognl-2.6.11.jar
struts2-core-2.1.2.jar
xwork-2.1.1.jar

 还需要将这五个核心LIB要复制外,

commons-io-1.3.2.jar
commons-fileupload-1.2.1.jar

这两个Jar文件也必须放到web-inf的lib文件夹中来。

共七个jar包才可以使用strust2.

你可能感兴趣的:(严重: Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/D:/Program Fil)