struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <christal...@yahoo.fr>
Subject Re: Struts CRUD demo OK but only Struts-2.0.6 version
Date Wed, 22 Jan 2014 14:00:28 GMT
Hello,

Il would be interesting to begin the CRUD example with both a login.jsp and a search.jsp

Regards





Le Lundi 13 janvier 2014 11h50, Lukasz Lenart <lukaszlenart@apache.org> a écrit :
 
And the CRUD example has been rewritten to use the latest S2 version

https://issues.apache.org/jira/browse/WW-3993


2014/1/13 Lukasz Lenart <lukaszlenart@apache.org>:
> 2014/1/11 Chris <christalkto@yahoo.fr>:
>> 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.FilterDispatcher.init(FilterDispatcher.java:193)
>
> First the FilterDispatcher is deprecated, use on of the new filters.
>
>> Caused by: java.lang.IllegalArgumentException: Javassist library is missing in classpath!
Please add missed dependency!
>>     at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:168)
>>     ... 63 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)
>>     ... 63 more
>
> Have you added Javassist library?
>
>> 11 janv. 2014 10:54:14 org.apache.catalina.core.StandardContext filterStart
>> GRAVE: Exception au démarrage du filtre struts2
>> 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)
>
> Do you use two different filters to init the framework?
>
> And it's 10 times better to use some tool to manage dependencies
> (Maven) instead solving that manually.
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message