Eclipse开发struts2,Tomcat启动出错

问题描述

信息:StartingServletEngine:ApacheTomcat/6.0.292011-5-813:47:52com.opensymphony.xwork2.util.logging.commons.CommonsLoggerinfo信息:Parsingconfigurationfile[struts-default.xml]2011-5-813:47:52com.opensymphony.xwork2.util.logging.commons.CommonsLoggerinfo信息:Parsingconfigurationfile[struts-plugin.xml]2011-5-813:47:52com.opensymphony.xwork2.util.logging.commons.CommonsLoggerinfo信息:Parsingconfigurationfile[struts.xml]2011-5-813:47:52com.opensymphony.xwork2.util.logging.commons.CommonsLoggererror严重:Dispatcherinitializationfailedjava.lang.RuntimeException:java.lang.reflect.InvocationTargetExceptionatcom.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:295)atcom.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:431)atcom.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.java:207)atcom.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)atcom.opensymphony.xwork2.inject.ContainerBuilder$3.create(ContainerBuilder.java:93)atcom.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:487)atcom.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:484)atcom.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)atcom.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:484)atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:252)atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)atorg.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)atorg.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4651)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:785)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)atorg.apache.catalina.core.StandardService.start(StandardService.java:519)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:581)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Causedby:java.lang.reflect.InvocationTargetExceptionatsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atcom.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:293)...33moreCausedby:java.lang.ExceptionInInitializerErroratcom.opensymphony.xwork2.ognl.OgnlValueStackFactory.setContainer(OgnlValueStackFactory.java:85)...38moreCausedby:java.lang.IllegalArgumentException:Javassistlibraryismissinginclasspath!Pleaseaddmisseddependency!atognl.OgnlRuntime.<clinit>(OgnlRuntime.java:165)...39moreCausedby:java.lang.ClassNotFoundException:javassist.ClassPoolatorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)atjava.lang.Class.forName0(NativeMethod)atjava.lang.Class.forName(UnknownSource)atognl.OgnlRuntime.<clinit>(OgnlRuntime.java:162)...39more2011-5-813:47:52org.apache.catalina.core.StandardContextfilterStart严重:Exceptionstartingfilterstruts2java.lang.reflect.InvocationTargetException-Class:com.opensymphony.xwork2.inject.ContainerImpl$MethodInjectorFile:ContainerImpl.javaMethod:injectLine:295-com/opensymphony/xwork2/inject/ContainerImpl.java:295:-1atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)atorg.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)atorg.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4651)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:785)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)atorg.apache.catalina.core.StandardService.start(StandardService.java:519)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:581)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Causedby:java.lang.RuntimeException:java.lang.reflect.InvocationTargetExceptionatcom.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:295)atcom.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:431)atcom.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.java:207)atcom.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)atcom.opensymphony.xwork2.inject.ContainerBuilder$3.create(ContainerBuilder.java:93)atcom.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:487)atcom.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:484)atcom.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)atcom.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:484)atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:252)atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)...20moreCausedby:java.lang.reflect.InvocationTargetExceptionatsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atcom.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:293)...33moreCausedby:java.lang.ExceptionInInitializerErroratcom.opensymphony.xwork2.ognl.OgnlValueStackFactory.setContainer(OgnlValueStackFactory.java:85)...38moreCausedby:java.lang.IllegalArgumentException:Javassistlibraryismissinginclasspath!Pleaseaddmisseddependency!atognl.OgnlRuntime.<clinit>(OgnlRuntime.java:165)...39moreCausedby:java.lang.ClassNotFoundException:javassist.ClassPoolatorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)atjava.lang.Class.forName0(NativeMethod)atjava.lang.Class.forName(UnknownSource)atognl.OgnlRuntime.<clinit>(OgnlRuntime.java:162)...39more2011-5-813:47:52org.apache.catalina.core.StandardContextstart严重:ErrorfilterStart2011-5-813:47:52org.apache.catalina.core.StandardContextstart严重:Context[/action]startupfailedduetopreviouserrors2011-5-813:47:52org.apache.catalina.loader.WebappClassLoaderclearThreadLocalMap严重:Thewebapplication[/action]createdaThreadLocalwithkeyoftype[null](value[com.opensymphony.xwork2.inject.ContainerImpl$10@1e2befa])andavalueoftype[java.lang.Object[]](value[[Ljava.lang.Object;@1682598])butfailedtoremoveitwhenthewebapplicationwasstopped.Thisisverylikelytocreateamemoryleak.

解决方案

解决方案二:
该回复于2011-05-09 11:25:31被版主删除
解决方案三:
java.lang.ClassNotFoundException:javassist.ClassPoolJavassistlibraryismissinginclasspath!Pleaseaddmisseddependency!貌似缺少jar包
解决方案四:
包的问题,我也出过,不行就重新导入进去试试看。。。。
解决方案五:
少了jar包java.lang.ClassNotFoundException:javassist.ClassPool就那个javassist
解决方案六:
jar包问题,一般ErrorfilterStart要么是多了jar包要么是少了!

时间: 2024-10-28 15:20:14

Eclipse开发struts2,Tomcat启动出错的相关文章

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

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

web.xml-web-xml配置后,tomcat启动出错

问题描述 web-xml配置后,tomcat启动出错 这是错在哪里? 严重: Exception starting Context with name [/JavaWebApp] org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaWebApp]] at org.apache.

tomcat启动出错页面不能跳转

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

spring jpa activiti-spring+jpa+activiti,Tomcat启动出错

问题描述 spring+jpa+activiti,Tomcat启动出错 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'approvationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCre

tomcat启动出错,找不到解决办法,求大神指点

问题描述 tomcat启动出错,找不到解决办法,求大神指点 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang.NoClassDefFoundError: org.springframework.beans.FatalBeanException at org.spri

eclipse插件-eclips tomcat启动报错

问题描述 eclips tomcat启动报错 刚开始导入项目的时候是可以运行的,但是修改部分代码后,项目没报错,但tomcat就启动不了了. 报错内容是:Server Tomcat v8.0 Server at localhost failed to start. 请各位帮忙看看是怎么回事. 解决方案 看下配置文件,配置的问题,没有启动 解决方案二: tomcat 启动报错touch Linux中IDEA 下启动tomcat报错tomcat启动报错,以下是错误日志 解决方案三: 你给出的报错信息

tomcat 部署后 启动出错

问题描述 tomcat 部署后 启动出错 严重: Error in resourceStart() 十一月 26, 2015 3:39:50 下午 org.apache.catalina.core.StandardContext startInternal 严重: Error getConfigured 十一月 26, 2015 3:39:50 下午 org.apache.catalina.core.StandardContext startInternal 严重: Context [/news

Eclipse开发struts完全指南

一.准备安装程序 1.JDK 5.0 安装程序下载 下载地址: https://jsecom15b.sun.com/ECom/EComActionServlet/DownloadPage:~:com.sun.sunit.sdlc.content.DownloadPageInfo;jsessionid=502E87C71D77E3BC297C08B35DAC9AD4;jsessionid=502E87C71D77E3BC297C08B35DAC9AD4 同意协议后,可以下载jdk-1_5_0_05

在eclipse中开发struts2应用

转自李刚的<struts2权威指南>   下面开始在Eclipse中整合Tomcat服务器,实际上,如果我们安装了MyEclipse插件,我们可以在Eclipse中整合大部分的Java EE服务器(包括Web服务器).但如果我们不安装任何插件,Eclipse则很难与任何Java EE服务器整合.   提示:Eclipse必须安装了相应插件后才具有丰富的功能.为了开发Java EE应用,通常都推荐安装MyEclipse插件,该插件是一个商业产品,必须支付相应费用才可使用. 为了在Eclipse中