早在MYECLIPS6中能正常运行但是发布到TOMCAT的时候就出现如下错误,请高手指教啊 STRUTS版本2.1.2 不要告诉我加入两个commons-fileupload-1.2.1.jar/commons-io-1.3.2.jar/我加了没有用,高分求解帮忙啦!各位!
以下是问题
严重: Exception starting filter struts2
Unable to load configuration. - bean - jar:file:/D:/apache-tomcat-6.0.16/webapps/struts2demo/WEB-INF/lib/struts2-core-2.1.2.jar!/struts-default.xml:29:72
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:213)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
2009-9-3 7:03:27 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - bean - jar:file:/D:/apache-tomcat-6.0.16/webapps/struts2demo/WEB-INF/lib/struts2-core-2.1.2.jar!/struts-default.xml:29:72
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)

解决方案 »

  1.   

    加载不上struts默认的配置文件,看看你的strust.xml文件的路径默认在src下,它会自动加载该配置文件,
      

  2.   

    Unable to load configuration
    struts2-core-2.1.2.jar下的struts-default.xml出了问题
      

  3.   

    没用过struts2,不过你的jar包名怎么还有感叹号!
    Unable to load configuration. - bean - jar:file:/D:/apache-tomcat-6.0.16/webapps/struts2demo/WEB-INF/lib/struts2-core-2.1.2.jar!/struts-default.xml:29:72 这里的struts2-core-2.1.2.jar!看着好别扭
    是不是struts2的jar包就是这样的?
      

  4.   

    把包重新导过,右键点击工程,MyEclipse-》Add Struts。。
    试下行不
      

  5.   

    2.1.2应该是beta版,换成2.1.6吧。
    你的问题应该是jar包的问题,建议你先放入最少的jar文件,运行起来后再加入其他的包。
      

  6.   

    把Tomcat安装根目录下\common\endorsed\的xml-apis.jar删了试试,这个与struts2里有一个类是相同并冲突的,再在这个目录下加入xalan系列包,来替换。
      

  7.   

    CSDN的高手都是最后才出现的啊 谢谢楼上了。