4 Replies Latest reply on Sep 3, 2015 6:44 AM by kkmishra1

    Unable to find MessageBodyReader  of contenty type application/xml

    yck

      Hi, I have a jaxrs ws and it all works fine, until i execute the client from an executable jar (works fine when the main class is executed from eclipse). I become the following error:

       

       

      Exception in thread "main" org.jboss.resteasy.client.ClientResponseFailure: Unab
      le to find a MessageBodyReader of content-type application/xml and type class co
      m.agfa.orbis.ws.hl7validation.application.model.HL7ValidationReport
              at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailu
      re(BaseClientResponse.java:523)
              at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailu
      re(BaseClientResponse.java:514)
              at org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClient
      Response.java:415)
              at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClien
      tResponse.java:377)
              at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClien
      tResponse.java:350)
              at org.jboss.resteasy.client.core.extractors.BodyEntityExtractor.extract
      Entity(BodyEntityExtractor.java:62)
              at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.jav
      a:120)
              at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:88
      )
              at com.sun.proxy.$Proxy15.validateFileWithoutEncoding(Unknown Source)
              at com.agfa.orbis.ws.hl7validation.client.impl.HL7ValidationClient.valid
      ateHL7MessageWithPathWithoutEncoding(HL7ValidationClient.java:93)
              at com.agfa.orbis.ws.hl7validation.client.impl.Validator.main(Validator.
      java:77)
      
      

       

      I also have the jaxb-provice articact in my executable jar.

       

      it is the same case in all jaxrs methods since heyare all annotated with application/xml and all root elements.

       

       

      Any ideas how to solve this? Thanks in advance