严重:Dispatcherinitializationfailed
java.lang.RuntimeException:java.lang.reflect.InvocationTargetException
atcom.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:301)
atcom.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:438)
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:584)
atcom.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:484)
atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:324)
atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:221)
atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)
atorg.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
atorg.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
atorg.apache.catalina.core.StandardHost.start(StandardHost.java:719)
atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
atorg.apache.catalina.core.StandardService.start(StandardService.java:516)
atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)
atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
atjava.lang.reflect.Method.invoke(Method.java:597)
atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Causedby:java.lang.reflect.InvocationTargetException
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
atjava.lang.reflect.Method.invoke(Method.java:597)
atcom.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:299)
...42more
Causedby:java.lang.ExceptionInInitializerError
atcom.opensymphony.xwork2.ognl.OgnlValueStackFactory.setContainer(OgnlValueStackFactory.java:84)
...47more
Causedby:java.lang.IllegalArgumentException:Javassistlibraryismissinginclasspath!Pleaseaddmisseddependency!
atognl.OgnlRuntime.<clinit>(OgnlRuntime.java:168)
...48more
Causedby:java.lang.ClassNotFoundException:javassist.ClassPool
atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
atjava.lang.Class.forName0(NativeMethod)
atjava.lang.Class.forName(Class.java:169)
atognl.OgnlRuntime.<clinit>(OgnlRuntime.java:165)
...48more
2013-10-2412:31:50org.apache.catalina.core.StandardContextfilterStart
严重:Exceptionstartingfilterstruts2
java.lang.reflect.InvocationTargetException-Class:com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector
File:ContainerImpl.java
Method:inject
Line:301-com/opensymphony/xwork2/inject/ContainerImpl.java:301:-1
atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:502)
atorg.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
atorg.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
atorg.apache.catalina.core.StandardHost.start(StandardHost.java:719)
atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
atorg.apache.catalina.core.StandardService.start(StandardService.java:516)
atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)
atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
atjava.lang.reflect.Method.invoke(Method.java:597)
atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Causedby:java.lang.RuntimeException:java.lang.reflect.InvocationTargetException
atcom.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:301)
atcom.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:438)
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:584)
atcom.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:484)
atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:324)
atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:221)
atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)
...29more
Causedby:java.lang.reflect.InvocationTargetException
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
atjava.lang.reflect.Method.invoke(Method.java:597)
atcom.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:299)
...42more
Causedby:java.lang.ExceptionInInitializerError
atcom.opensymphony.xwork2.ognl.OgnlValueStackFactory.setContainer(OgnlValueStackFactory.java:84)
...47more
Causedby:java.lang.IllegalArgumentException:Javassistlibraryismissinginclasspath!Pleaseaddmisseddependency!
atognl.OgnlRuntime.<clinit>(OgnlRuntime.java:168)
...48more
Causedby:java.lang.ClassNotFoundException:javassist.ClassPool
atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
atjava.lang.Class.forName0(NativeMethod)
atjava.lang.Class.forName(Class.java:169)
atognl.OgnlRuntime.<clinit>(OgnlRuntime.java:165)
...48more
这个是我在构建struts框架时候出的错误,主要的错误时因为没有将包进行导全
struts2.2运行除了那几个基本必备的之外,还需要一个javassist-3.7.ga这样的包文件。
Javassist是一个开源的分析、编辑和创建Java字节码的类库