问题描述
信息: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包要么是少了!