用myeclipse启动一个struts2程序时,出错了,请教下怎么解决?
2014-7-2421:11:42org.apache.catalina.core.StandardContextfilterStart严重:Exceptionstart...
2014-7-24 21:11:42 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - [unknown location]
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
... 29 more
Caused by: Unable to load file:/D:/program%20files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/struts2/WEB-INF/classes/struts.xml - [unknown location]
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1022)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:165)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:132)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:233)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 31 more
Caused by: D:\program files\Apache Software Foundation\Tomcat 6.0\webapps\struts2\WEB-INF\dtd\struts-2.3.dtd (系统找不到指定的路径。) - [unknown location]
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:119)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1017)
... 35 more
Caused by: java.io.FileNotFoundException: D:\program files\Apache Software Foundation\Tomcat 6.0\webapps\struts2\WEB-INF\dtd\struts-2.3.dtd (系统找不到指定的路径。)
... 36 more
2014-7-24 21:11:42 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2014-7-24 21:11:42 org.apache.catalina.core.StandardContext start
严重: Context [/struts2] startup failed due to previous errors 展开
严重: Exception starting filter struts2
Unable to load configuration. - [unknown location]
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
... 29 more
Caused by: Unable to load file:/D:/program%20files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/struts2/WEB-INF/classes/struts.xml - [unknown location]
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1022)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:165)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:132)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:233)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 31 more
Caused by: D:\program files\Apache Software Foundation\Tomcat 6.0\webapps\struts2\WEB-INF\dtd\struts-2.3.dtd (系统找不到指定的路径。) - [unknown location]
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:119)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1017)
... 35 more
Caused by: java.io.FileNotFoundException: D:\program files\Apache Software Foundation\Tomcat 6.0\webapps\struts2\WEB-INF\dtd\struts-2.3.dtd (系统找不到指定的路径。)
... 36 more
2014-7-24 21:11:42 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2014-7-24 21:11:42 org.apache.catalina.core.StandardContext start
严重: Context [/struts2] startup failed due to previous errors 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询