Struts2错误 Dispatcher initialization failed

1、Struts2错误

严重: Dispatcher initialization failed
Unable to load configuration. - action - file:/D:/Apache%20Software%20Foundation/Tomcat%206.0/webapps/structs2/WEB-INF/classes/struts.xml:23:79
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
.

.

.

无法加载配置,检查下jar包是否完整!
除了 
commons-logging-1.0.4.jar
freemarker-2.3.12.jar
ognl-2.6.11.jar
struts2-core-2.1.8.jar
xwork-2.1.1.jar

这五个核心lib要复制外,
依次加载下面两个lib
commons-fileupload-1.2.1.jar

commons-io-1.3.2.jar

另外,还要注意是不是原先的代码有问题!
仔细看下你的错误信息
Unable to load configuration. - action -file:/D:/Apache%20Software%20Foundation/Tomcat%206.0/webapps/structs2/WEB-INF/classes/struts.xml:23:79
它不能加载struts.xml这里的配置,你仔细检查下那个文件的代码!

你可能感兴趣的:(Struts2错误 Dispatcher initialization failed)