Re: Unable to integrate struts2-rest-plugin in existing maven structure

2017-12-01 Thread preetam1...@gmail.com
Yes., in  start i thought same (also in stack overflow everyone suggested 
same). but even after adding json-lib . getting same error.

my pom.xml contain.


org.apache.struts
struts2-core
2.3.24.1




org.apache.struts
struts2-rest-plugin
2.3.24.1



org.apache.struts
struts2-convention-plugin
2.3.24.1



net.sf.json-lib
json-lib
2.4




On 2017-12-01 16:59, Lukasz Lenart  wrote: 
> 2017-12-01 12:26 GMT+01:00 PATIL Preetam :
> > Hello,
> >
> > I am trying add struts2-rest-plugin to existing application. tried all 
> > possible option but no use.!
> > I am new to maven related stuff,
> >
> > Getting below errors.
> >
> > Caused by: Unable to load bean: 
> > type:org.apache.struts2.rest.handler.ContentTypeHandler 
> > class:org.apache.struts2.rest.handler.JsonLibHandler - bean - 
> > jar:file:/C:/Users/userName/.m2/repository/org/apache/struts/struts2-rest-plugin/2.3.24.1/struts2-rest-plugin-2.3.24.1.jar!/struts-plugin.xml:36:138
> >
> > Caused by: java.lang.NoClassDefFoundError: net/sf/json/JSONArray
> >
> > Caused by: java.lang.ClassNotFoundException: net.sf.json.JSONArray
> 
> How did you declare this dependency in your pom.xml? Basically you are
> missing json-lib but that should be resolved by Maven.
> http://search.maven.org/#artifactdetails%7Cnet.sf.json-lib%7Cjson-lib%7C2.4%7Cjar
> 
> 
> Regards
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Unable to integrate struts2-rest-plugin in existing maven structure

2017-12-01 Thread preetam1...@gmail.com
I am trying add struts2-rest-plugin to existing application. But getting below 
errors. I am tried all possible option but no use!
Caused by: Unable to load bean: 
type:org.apache.struts2.rest.handler.ContentTypeHandler 
class:org.apache.struts2.rest.handler.JsonLibHandler - bean - 
jar:file:/C:/Users/userName/.m2/repository/org/apache/struts/struts2-rest-plugin/2.3.24.1/struts2-rest-plugin-2.3.24.1.jar!/struts-plugin.xml:36:138
Caused by: java.lang.NoClassDefFoundError: net/sf/json/JSONArray
Caused by: java.lang.ClassNotFoundException: net.sf.json.JSONArray

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Unable to integrate struts2-rest-plugin in existing maven structure

2017-12-01 Thread preetam1...@gmail.com
Also tried by upgrading rest-plug in version.


org.apache.struts
struts2-rest-plugin
2.5

It gives new type of error

ERROR InterceptorBuilder - Actual exception
Could not load class org.apache.struts2.rest.RestWorkflowInterceptor. Perhaps 
it exists but certain dependencies are not available? - interceptor - 
jar:file:/C:/Users/u/.m2/repository/org/apache/struts/struts2-rest-plugin/2.5/struts2-rest-plugin-2.5.jar!/struts-plugin.xml:61:103


Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/LogManager

Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.LogManager






On 2017-12-01 18:17, Yasser Zamani  wrote: 
> 
> 
> On 12/1/2017 3:50 PM, PATIL Preetam wrote:
> >  
> >  net.sf.json-lib
> >  json-lib
> >  2.4
> >  
> 
> Could you try
> 
> jdk15
> 
> i.e.
> 
>  
>  net.sf.json-lib
>  json-lib
>  2.4
>  jdk15
>  
> 
> Regards,
> Yasser.
> 

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Unable to integrate struts2-rest-plugin in existing maven structure

2017-12-01 Thread preetam1...@gmail.com
Yes, i tried 
 jdk15 
as well
 jdk13

On 2017-12-01 18:17, Yasser Zamani  wrote: 
> 
> 
> On 12/1/2017 3:50 PM, PATIL Preetam wrote:
> >  
> >  net.sf.json-lib
> >  json-lib
> >  2.4
> >  
> 
> Could you try
> 
> jdk15
> 
> i.e.
> 
>  
>  net.sf.json-lib
>  json-lib
>  2.4
>  jdk15
>  
> 
> Regards,
> Yasser.
> 

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org