Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4898

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.3.24
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      struts2-core: 2.3.24.1
      struts2-rest-plugin :2.3.24.1
      struts2-convention-plugin : .3.24.1

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              preetam1910 preetam
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: