Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-786

External dependencies should be explicitly exported

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 2.3.2.Final
    • None
    • None
    • Workaround Exists
    • Hide

      Explicitly add the dependencies in MANIFEST

      Show
      Explicitly add the dependencies in MANIFEST

    Description

      When RESTEasy application uses JSON, a dependency to org.jboss.resteasy.resteasy-jackson-provider is mentioned in the MANIFEST and this works fine for trivial cases. But when the application uses JSON serialize/de-serialize utilities then CNFE is thrown.

      java.lang.NoClassDefFoundError: org/codehaus/jackson/map/JsonSerializer
      

      This can be worked around by adding explicit dependencies on the appropriate jackson modules. However, since the provider module already includes them as dependencies, it feels appropriate to export them from there. The same applies for jettison and other providers too.

      <module name="org.codehaus.jackson.jackson-core-asl" export="true"/>
      <module name="org.codehaus.jackson.jackson-jaxrs" export="true"/>
      <module name="org.codehaus.jackson.jackson-mapper-asl" export="true"/>
      <module name="org.codehaus.jackson.jackson-xc" export="true"/>
      

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            mageshbk_jira Magesh Bojan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: