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

Unable to find a MessageBodyReader of content-type application/xml

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 3.0.23.Final, 3.1.3.Final
    • 3.0.17.Final, 3.1.2.Final
    • None
    • None

      When my test script tries to invoke the REST service under test, which returns an XML message body to match the annotation in my interface file, the following processing exception is thrown:

      RESTEASY003145: Unable to find a MessageBodyReader of content-type application/xml and type interface java.util.List

      I am unable to find out which dependency is missing. I have configured the Maven POM of my project to include the following artifacts:

      [INFO] +- org.jboss.resteasy:resteasy-client:jar:3.0.17.Final:test
      [INFO] | +- org.jboss.resteasy:resteasy-jaxrs:jar:3.0.17.Final:test
      [INFO] | | +- org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec:jar:1.0.0.Final:test
      [INFO] | | +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar:1.0.0.Final:test
      [INFO] | | +- javax.activation:activation:jar:1.1.1:test
      [INFO] | | +- org.apache.httpcomponents:httpclient:jar:4.3.6:test
      [INFO] | | | +- org.apache.httpcomponents:httpcore:jar:4.3.3:test
      [INFO] | | | +- commons-logging:commons-logging:jar:1.1.3:test
      [INFO] | | | - commons-codec:commons-codec:jar:1.6:test
      [INFO] | | - net.jcip:jcip-annotations:jar:1.0:test
      [INFO] | - org.jboss.logging:jboss-logging:jar:3.1.4.GA:test
      [INFO] +- org.jboss.resteasy:resteasy-jaxrs-all:pom:3.0.17.Final:test
      [INFO] +- org.jboss.resteasy:resteasy-jaxb-provider:jar:3.0.17.Final:test
      [INFO] | - com.sun.xml.bind:jaxb-impl:jar:2.2.7:test
      [INFO] | +- com.sun.xml.bind:jaxb-core:jar:2.2.7:test
      [INFO] | | +- javax.xml.bind:jaxb-api:jar:2.2.7:test
      [INFO] | | - com.sun.istack:istack-commons-runtime:jar:2.16:test
      [INFO] | - com.sun.xml.fastinfoset:FastInfoset:jar:1.2.12:test
      [INFO] | - javax.xml.bind:jsr173_api:jar:1.0:test

      I have also tried adding the resteasy-jackson-provider and resteasy-jackson2-provider, all to no avail. Please help and also update the documentation to clarify this issue.

            rsigal@redhat.com Ronald Sigal
            immohuneke Immo Huneke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: