tomcat启动Dispatcher initialization failed

J2EE 码拜 10年前 (2015-04-11) 1781次浏览 0个评论
引用

严重: Dispatcher initialization failed
Unable to load configuration. – action – file:/D:/xiaomao/apache-tomcat-7.0.55/webapps/mystruts2day02/WEB-INF/classes/cn/itcast/struts2/mydemo4/struts_demo4.xml:7:74
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4828)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: Action class [cn.itcast.struts2.mydemo4.Regist1Action1] not found – action – file:/D:/xiaomao/apache-tomcat-7.0.55/webapps/mystruts2day02/WEB-INF/classes/cn/itcast/struts2/mydemo4/struts_demo4.xml:7:74
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:480)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:424)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:541)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:290)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:239)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)
… 21 more
2014-9-24 21:51:57 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. – action – file:/D:/xiaomao/apache-tomcat-7.0.55/webapps/mystruts2day02/WEB-INF/classes/cn/itcast/struts2/mydemo4/struts_demo4.xml:7:74
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:483)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4828)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: Unable to load configuration. – action – file:/D:/xiaomao/apache-tomcat-7.0.55/webapps/mystruts2day02/WEB-INF/classes/cn/itcast/struts2/mydemo4/struts_demo4.xml:7:74
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)
… 19 more
Caused by: Action class [cn.itcast.struts2.mydemo4.Regist1Action1] not found – action – file:/D:/xiaomao/apache-tomcat-7.0.55/webapps/mystruts2day02/WEB-INF/classes/cn/itcast/struts2/mydemo4/struts_demo4.xml:7:74
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:480)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:424)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:541)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:290)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:239)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)
… 21 more
2014-9-24 21:51:57 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2014-9-24 21:51:57 org.apache.catalina.core.StandardContext startInternal
严重: Context [/mystruts2day02] startup failed due to previous errors
2014-9-24 21:51:57 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\xiaomao\apache-tomcat-7.0.55\webapps\mystruts2day02 has finished in 4,190 ms
2014-9-24 21:51:57 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\xiaomao\apache-tomcat-7.0.55\webapps\ROOT
2014-9-24 21:51:57 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\xiaomao\apache-tomcat-7.0.55\webapps\ROOT has finished in 117 ms
2014-9-24 21:51:57 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [“http-apr-8080”]
2014-9-24 21:51:57 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [“ajp-apr-8009”]
2014-9-24 21:51:57 org.apache.catalina.startup.Catalina start
信息: Server startup in 8673 ms

tomcat启动Dispatcher initialization failed
10分
错误显示
cn.itcast.struts2.mydemo4.Regist1Action1 类没找到。
检查是否编译成功或者拼写错误。怎么后面有个1?
tomcat启动Dispatcher initialization failed
10分
你再仔细检查一下,要么是环境配置有问题,要么就是缺少jar包,对于缺少jar包,建议重新安装,要找出哪缺少相当费劲
tomcat启动Dispatcher initialization failed
10分
Caused by: Action class [cn.itcast.struts2.mydemo4.Regist1Action1] not found – action – file:/D:/xiaomao/apache-tomcat-7.0.55/webapps/mystruts2day02/WEB-INF/classes/cn/itcast/struts2/mydemo4/struts_demo4.xml:7:74
看看74行配置对应的class文件在不在classes目录 下面
tomcat启动Dispatcher initialization failed
10分
Caused by: Action class [cn.itcast.struts2.mydemo4.Regist1Action1] not found – action – file:/D:/xiaomao/apache-tomcat-

Action 对应的class配置错误


CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明tomcat启动Dispatcher initialization failed
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!