日期:2014-05-20  浏览次数:20851 次

搭建SSH框架遇到的严重问题各位帮忙看看
严重: Exception starting filter struts2
Unable to load configuration. - action - file:/C:/Tomcat6.0/webapps/MySpring/WEB-INF/classes/struts.xml:8:61
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
安装目录没有空格
安装包有:antlr-2.7.6.jar;cglib-nodep-2.1_3.jar;commons-fileupload-1.2.1.jar;commons-io.jar
commons-logging.jar;freemarker-2.3.13.jar;ognl-2.6.11.jar;ojdbc6.jar;spring.jar;struts2-core-2.1.6.jar;
struts2-dojo-plugin-2.1.6.jar;xwork-2.1.2.jar;xwork-core-2.1.6.jar;
web.xml

<filter>
<filter-name>struts2</filter-name>
<filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

------解决方案--------------------
C:/Tomcat6.0/webapps/MySpring/WEB-INF/classes/struts.xml检查是否存在这个东西,没有加载到struts.xml所以报错了
------解决方案--------------------
加载struts.xml报错了额!检查下路径呗。