用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
展开
 我来答
quanbiaode
2014-07-24 · 超过26用户采纳过TA的回答
知道答主
回答量:119
采纳率:50%
帮助的人:42.1万
展开全部
D:\program files\Apache Software Foundation\Tomcat 6.0\webapps\struts2\WEB-INF\dtd\struts-2.3.dtd(系统找不到指定的路径。)
兄台,你导入的包没有导全,检查下这个dtd文件在系统包中到底存在不,如果不存在则导入
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式