Hello,
In start I though same (issue with json-lib). But even after adding json-lib
getting same error.
I am trying to reply from PonyMail. But it not appearing . So again sending as
mail.
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
-Original Message-
From: Lukasz Lenart [mailto:lukaszlen...@apache.org]
Sent: Friday, December 01, 2017 5:00 PM
To: Struts Users Mailing List
Subject: Re: Unable to integrate struts2-rest-plugin in existing maven structure
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-r
> est-plugin/2.3.24.1/struts2-rest-plugin-2.3.24.1.jar!/struts-plugin.xm
> l:36:138 ruts2-rest-plugin\2.3.24.1\struts2-rest-plugin-2.3.24.1.jar!\struts-pl
> ugin.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
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential and/or
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email
and all attachments,
(iii) Dassault Systemes does not accept or assume any liability or
responsibility for any use of or reliance on this email.
For other languages, go to http://www.3ds.com/terms/email-disclaimer