Buenas, Estoy empezando con Struts2 pero cuando ejecuto en Tomcat me da lo siguiente en la consola:
sep 30, 2011 2:34:09 AM com.opensymphony.xwork2.util.logging.commons.Commo nsLogger error
Grave: Dispatcher initialization failed
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.opensymphony.xwork2.inject.ContainerImpl$Metho dInjector.inject(ContainerImpl.java:295)
at com.opensymphony.xwork2.inject.ContainerImpl$Const ructorInjector.construct(ContainerImpl.java:431)
at com.opensymphony.xwork2.inject.ContainerBuilder$5. create(ContainerBuilder.java:207)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Sc ope.java:51)
at com.opensymphony.xwork2.inject.ContainerBuilder$3. create(ContainerBuilder.java:93)
at com.opensymphony.xwork2.inject.ContainerBuilder$7. call(ContainerBuilder.java:487)
at com.opensymphony.xwork2.inject.ContainerBuilder$7. call(ContainerBuilder.java:484)
at com.opensymphony.xwork2.inject.ContainerImpl.callI nContext(ContainerImpl.java:574)
at com.opensymphony.xwork2.inject.ContainerBuilder.cr eate(ContainerBuilder.java:484)
at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.createBootstrapContainer(DefaultConfigurati on.java:252)
at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.reloadContainer(DefaultConfiguration.java:1 93)
at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:66)
at org.apache.struts2.dispatcher.Dispatcher.init_Prel oadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:415)
at org.apache.struts2.dispatcher.FilterDispatcher.ini t(FilterDispatcher.java:190)
at org.apache.catalina.core.ApplicationFilterConfig.g etFilter(ApplicationFilterConfig.java:295)
at org.apache.catalina.core.ApplicationFilterConfig.s etFilterDef(ApplicationFilterConfig.java:422)
at org.apache.catalina.core.ApplicationFilterConfig.< init>(ApplicationFilterConfig.java:115)
at org.apache.catalina.core.StandardContext.filterSta rt(StandardContext.java:3838)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4488)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:785)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:519)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:414)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.opensymphony.xwork2.inject.ContainerImpl$Metho dInjector.inject(ContainerImpl.java:293)
... 32 more
Caused by: java.lang.ExceptionInInitializerError
at com.opensymphony.xwork2.ognl.OgnlValueStackFactory .setContainer(OgnlValueStackFactory.java:85)
... 37 more
Caused by: java.lang.IllegalArgumentException: Javassist library is missing in classpath! Please add missed dependency!
at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:165)
... 38 more
Caused by: java.lang.ClassNotFoundException: javassist.ClassPool
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1516)
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1361)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:162)
... 38 more
sep 30, 2011 2:34:09 AM org.apache.catalina.core.StandardContext filterStart
Grave: Excepción arrancando filtro struts
java.lang.reflect.InvocationTargetException - Class: com.opensymphony.xwork2.inject.ContainerImpl$Metho dInjector
File: ContainerImpl.java
Method: inject
Line: 295 - com/opensymphony/xwork2/inject/ContainerImpl.java:295:-1
at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:428)
at org.apache.struts2.dispatcher.FilterDispatcher.ini t(FilterDispatcher.java:190)
at org.apache.catalina.core.ApplicationFilterConfig.g etFilter(ApplicationFilterConfig.java:295)
at org.apache.catalina.core.ApplicationFilterConfig.s etFilterDef(ApplicationFilterConfig.java:422)
at org.apache.catalina.core.ApplicationFilterConfig.< init>(ApplicationFilterConfig.java:115)
at org.apache.catalina.core.StandardContext.filterSta rt(StandardContext.java:3838)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4488)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:785)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:519)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:414)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.opensymphony.xwork2.inject.ContainerImpl$Metho dInjector.inject(ContainerImpl.java:295)
at com.opensymphony.xwork2.inject.ContainerImpl$Const ructorInjector.construct(ContainerImpl.java:431)
at com.opensymphony.xwork2.inject.ContainerBuilder$5. create(ContainerBuilder.java:207)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Sc ope.java:51)
at com.opensymphony.xwork2.inject.ContainerBuilder$3. create(ContainerBuilder.java:93)
at com.opensymphony.xwork2.inject.ContainerBuilder$7. call(ContainerBuilder.java:487)
at com.opensymphony.xwork2.inject.ContainerBuilder$7. call(ContainerBuilder.java:484)
at com.opensymphony.xwork2.inject.ContainerImpl.callI nContext(ContainerImpl.java:574)
at com.opensymphony.xwork2.inject.ContainerBuilder.cr eate(ContainerBuilder.java:484)
at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.createBootstrapContainer(DefaultConfigurati on.java:252)
at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.reloadContainer(DefaultConfiguration.java:1 93)
at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:66)
at org.apache.struts2.dispatcher.Dispatcher.init_Prel oadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:415)
... 19 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.opensymphony.xwork2.inject.ContainerImpl$Metho dInjector.inject(ContainerImpl.java:293)
... 32 more
Caused by: java.lang.ExceptionInInitializerError
at com.opensymphony.xwork2.ognl.OgnlValueStackFactory .setContainer(OgnlValueStackFactory.java:85)
... 37 more
Caused by: java.lang.IllegalArgumentException: Javassist library is missing in classpath! Please add missed dependency!
at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:165)
... 38 more
Caused by: java.lang.ClassNotFoundException: javassist.ClassPool
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1516)
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1361)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:162)
... 38 more
sep 30, 2011 2:34:09 AM org.apache.catalina.core.StandardContext start
Grave: Error filterStart
sep 30, 2011 2:34:09 AM org.apache.catalina.core.StandardContext start
Grave: Falló en arranque del Contexto [/Struts2HolaMundo] debido a errores previos
sep 30, 2011 2:34:09 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
Grave: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@95 98c0]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@15f73e9]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
He probado Tomcat con una servlet y funciona, he copiado todos lo JARs de lib struts2 en WEB-INF>lib, he verificado que en java build path existen.
Gracias por adelantado