struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Geppert <jo...@apache.org>
Subject Re: Struts CRUD demo OK but only Struts-2.0.6 version
Date Sat, 11 Jan 2014 14:10:48 GMT
Take a look at the Stacktrace. :-)

Caused by: java.lang.IllegalArgumentException: Javassist library is missing
in classpath! Please add missed dependency!

Best Regards

Johannes

#################################################
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep



2014/1/11 Chris <christalkto@yahoo.fr>

> Hello,
> Are dependencies missing ?
>
> Struts 2 CRUD Example works fine but only in Struts-2.0.6 not in
> Struts-2.3.16
>
> http://struts.apache.org/development/2.x/docs/tutorials.html
> Tutorials / Speciality / CRUD Made Easy / CRUD Demo I / Struts 2 CRUD
> Example
> Old jar files :
>  commons-beanutils-1.7.0.jar
>  commons-logging-1.0.4.jar
>  freemarker-2.3.8.jar
>  ognl-2.6.11.jar
>  struts2-core-2.0.6.jar
>  struts2-sitemesh-plugin-2.0.6.jar
>  xwork-2.0.1.jar
>
> And old filter
>      <filter-name>struts</filter-name>
>
> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>        </filter>
> =================================
> ========================================================
> But if you try with new version...It doesn't work
>
> Struts-2.3.16 and CRUD Demo I
> With new jar files and new filter, it doesn't work. Do you know why ?
> New jar files
>  commons-beanutils-1.8.0.jar
>  commons-logging-api-1.1.jar
>  freemarker-2.3.19.jar
>  ognl-3.0.6.jar
>  struts2-core-2.3.16.jar
>  struts2-sitemesh-plugin-2.3.16.jar
>  xwork-core-2.3.16.jar
>
> New filter
>
> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
>
>
> 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
>     at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501)
>     at
> org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
>     at
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
>     at
> org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
>     at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
>     at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
>     at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656)
>     at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312)
>     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:633)
>     at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)
>     at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:536)
>     at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1462)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at
> org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
>     at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
>     at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
>     at
> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1445)
>     at
> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:860)
>     at
> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:357)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at
> org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>     at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>     at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>     at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>     at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>     at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
>     at
> com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:301)
>     at
> com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:438)
>     at
> com.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.java:207)
>     at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.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.callInContext(ContainerImpl.java:584)
>     at
> com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:484)
>     at
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:340)
>     at
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:229)
>     at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
>     at
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
>     at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
>     ... 45 more
> Caused by: java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at
> com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:299)
>     ... 58 more
> Caused by: java.lang.ExceptionInInitializerError
>     at
> com.opensymphony.xwork2.ognl.OgnlValueStackFactory.setContainer(OgnlValueStackFactory.java:84)
>     ... 63 more
> Caused by: java.lang.IllegalArgumentException: Javassist library is
> missing in classpath! Please add missed dependency!
>     at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:168)
>     ... 64 more
> Caused by: java.lang.ClassNotFoundException: javassist.ClassPool
>     at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
>     at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
>     at java.lang.Class.forName0(Native Method)
>     at java.lang.Class.forName(Class.java:169)
>     at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:165)
>     ... 64 more
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message