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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 2.1.0.GA
    • None
    • None
    • Running Tomcat 6
      On both ubuntu 10.10 and Windows 7

      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.

              patriot1burke@gmail.com Bill Burke (Inactive)
              magnuseliasar Magnús Elíasson (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: