发布网友
共2个回答
热心网友
加载struts2的配置文件出错,检查一下struts的配置文件,这里,看不到不能告诉你具体的原因,如果仅仅只是使用了,struts2,而没有用其他的,spring,hibernate的话,检查起来比较快的。你主要看,你的web.xml里面配置的filter有没有问题,加载的类对应的包导入进去了吗,系统路径配置正确不,然后看你的sturts2.xml里面的内容,这个地方,就看看类对应不,还有一些加载的顺序什么的。
热心网友
把你的tomcat放到英文路径下试试,感觉可能是中文路径导致的。追问拿出去了,不管用改成这个错误了
严重: Exception starting filter struts2
Unable to load configuration. - bean - jar:file:/E:/tomcat6/webapps/test1/WEB-INF/lib/struts2-core-2.3.1.2.jar!/struts-default.xml:48:178
追答把你的struts2-core-2.3.1.2.jar这个jar包用winrar解压开来看看,里面有没有struts-default.xml这个文件?