tomcat运行出错,struts有问题?

问题描述

tomcat运行出错,struts有问题?
严重: Dispatcher initialization failed
Unable to load configuration. - action - file:/D:/Tomcat/apache-tomcat-7.0.52/webapps/sreg/WEB-INF/classes/struts.xml:10:82
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
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.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.HostConfig.reload(HostConfig.java:1464)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1442)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1626)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:328)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
at java.lang.Thread.run(Thread.java:745)
Caused by: Action class [com.huizhi.user.action.LoginAction] not found - action - file:/D:/Tomcat/apache-tomcat-7.0.52/webapps/sreg/WEB-INF/classes/struts.xml:10:82
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:420)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
... 21 more
四月 23 2015 10:26:20 上午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - action - file:/D:/Tomcat/apache-tomcat-7.0.52/webapps/sreg/WEB-INF/classes/struts.xml:10:82
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
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.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.HostConfig.reload(HostConfig.java:1464)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1442)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1626)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:328)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
at java.lang.Thread.run(Thread.java:745)
Caused by: Unable to load configuration. - action - file:/D:/Tomcat/apache-tomcat-7.0.52/webapps/sreg/WEB-INF/classes/struts.xml:10:82
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
... 19 more
Caused by: Action class [com.huizhi.user.action.LoginAction] not found - action - file:/D:/Tomcat/apache-tomcat-7.0.52/webapps/sreg/WEB-INF/classes/struts.xml:10:82
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:420)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
... 21 more
四月 23 2015 10:26:20 上午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
四月 23 2015 10:26:20 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/sreg] startup failed due to previous errors
四月 23 2015 10:26:20 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/sreg] created a ThreadLocal with key of type com.opensymphony.xwork2.inject.ContainerImpl$10 and a value of type java.lang.Object[] but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
四月 23 2015 10:26:20 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/sreg] created a ThreadLocal with key of type com.opensymphony.xwork2.inject.ContainerImpl$10 and a value of type java.lang.Object[] but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

解决方案


看上图的报错信息是AuthorityInterceptor这个类不实现于Interceptor这个接口,在sreg项目下的struts.xml配置文件的第22行

解决方案二:

看你这上面的报错信息就知道你之前写的sreg项目的代码出错,导致tomcat服务器开启报错,在sreg项目下的LoginAction类的action找不到,你再检查一下吧,如果解决了,那就更好不过了!

解决方案三:
严重: Actual exception
Caught Exception while registering Interceptor class com.huizhi.util.AuthorityInterceptor - interceptor - file:/D:/Tomcat/apache-tomcat-7.0.52/webapps/sreg/WEB-INF/classes/struts.xml:22:79
at org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(StrutsObjectFactory.java:77)
at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:70)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:998)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:817)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:830)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:853)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:460)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
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.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
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:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: Class [com.huizhi.util.AuthorityInterceptor] does not implement Interceptor - interceptor - file:/D:/Tomcat/apache-tomcat-7.0.52/webapps/sreg/WEB-INF/classes/struts.xml:22:79
at org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(StrutsObjectFactory.java:65)
... 30 more

时间: 2024-09-14 09:51:55

tomcat运行出错,struts有问题?的相关文章

tomcat运行出错,大神帮帮忙!

问题描述 tomcat运行出错,大神帮帮忙! HTTP Status 404 - /sheji/file/%E4%BD%9C%E5%93%81%E4%B8%8A%E4%BC%A0.doc type Status report message /sheji/file/%E4%BD%9C%E5%93%81%E4%B8%8A%E4%BC%A0.doc description The requested resource (/sheji/file/%E4%BD%9C%E5%93%81%E4%B8%8A%

struts 2-xml在tomcat里运行出错

问题描述 xml在tomcat里运行出错 分别是xml文件和提示的错误,项目发布到tomcat上运行成功,添加xml以后出错,应该怎么改? 严重: Caught exception while loading file action/Requiredstring-validation.xmlhttp://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd - Class: sun.net.www.protocol.http.HttpURLCo

spring mvc在tomcat容器上运行出错

问题描述 spring mvc在tomcat容器上运行出错 解决方案 看下是不是表更新了,代码没更新 没找到字段报错了. 解决方案二: 提示没有找到字段,你确认字段匹配这对了嘛

程序-tomcat运行Struts JSP提示错误

问题描述 tomcat运行Struts JSP提示错误 这是JSP 和struts.xml的配置和提示的错误 点击错误以后出现这个页面 程序没有问题 运行同目录下index.jsp也可以 请问是哪里不对? 解决方案 base href=<%=basepath%>中basepath哪定义的,定义了吗 解决方案二: 应该不是你代码的问题,看看tomcat是否配置正确,程序部署有没有问题 解决方案三: 请把错误页面贴出来,详细说明 解决方案四: 已经解决了 就是空格添加不当的问题 删除多余的空格 在

关于spring mvc注解的使用,运行tomcat时出错

问题描述 关于spring mvc注解的使用,运行tomcat时出错 spring-mvc.xml的代码 <!--开启注解扫描 --> <context:component-scan base-package="com.tarena"/> <!--开启MVC注解扫描 --> <mvc:annotation-driven/> <!--定义视图解析器ViewResolver --> <bean id="viewRe

tomcat启动出错,怎么解决啊?

问题描述 tomcat启动出错,怎么解决啊? 解决方案 ??????? 上次写了一篇文章求救, tomcat 启动出错,帮忙解决 ?? 一直没有找到问题的原因,也没有高人帮忙解决!后来我自己发现了问题的原因,在这里给大家指出来 .为什么另开一篇文章,实在是不好意思,只能怪csdn blog团队,不知道整天在干什么,文章的评论死活出不来,把blog改得是乌烟瘴气,没办法....?????? 具体tomcat是哪个版本,我也忘记了,懒得去查了,反正是tom......答案就在这里:关于 tomcat

jsp-myeclipse与mysql运行出错

问题描述 myeclipse与mysql运行出错 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '8 ID,GoodsStyle,GoodsName,StartProvince,StartCity,EndProvince,EndCity,Style,User' at line

tomcat启动出错页面不能跳转

问题描述 tomcat启动出错页面不能跳转 登陆页面 输入成功可以跳转到登陆成功页面 输入姓名密码错误就提示404错误,不能跳转到重新登陆页面 tomcat提示的错误如下 应该怎么改 解决方案 已经调试出来了了 在struts 和 action 中输入需要注意大小写 还有单词的书写问题 空格问题 谢谢大家 解决方案二: jdk1.8和以前版本有个致命的区别就是getResource获取路径,你注意点. String WEBINFPath = this.getServletContext().ge

struts2+hibernate4.3 运行出错,简单的登录注册界面 哪个高手能帮我看一下谢谢!

问题描述 struts2+hibernate4.3 运行出错,简单的登录注册界面 哪个高手能帮我看一下谢谢! ![HTTP Status 500 - Filter execution threw an exception type Exception report message Filter execution threw an exception **description **The server encountered an internal error that prevented i