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

When resteasy.scan is set to true runtime exception is thrown due to Jackson provider : java.lang.RuntimeException: Illegal to inject a message body into a singleton into public org.codehaus.jackson.jaxrs.JacksonJsonProvider

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.0.GA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Running Tomcat 6
      On both ubuntu 10.10 and Windows 7

      Description

      When i configure resteasy to scan for both providers and resources and run tomcat the following exception is thrown:

      java.lang.RuntimeException: Illegal to inject a message body into a singleton into public org.codehaus.jackson.jaxrs.JacksonJsonProvider.

      Now when I just configure resteasy to scan for resources and configure my custom providers in the web.xml, everything works fine and my resources output Jackson format JSON.

      However I would like the scan to work for everything and use the jackson provider

      Maybe this Is a known issue, or I am missing some configuration, at least I couldn't find any info on this.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bill.burke Bill Burke
                Reporter:
                magnuseliasar Magnús Elíasson
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: