0 Replies Latest reply on Mar 13, 2015 2:49 AM by Björn Forslund

    RestEasy + JacksonJaxbJsonProvider

    Björn Forslund Newbie



      I have a problem with the Jboss RestEasy implementation. I want to use the JacksonJaxbJsonProvider since i have elements in the request that have jaxb annotations in my request obj @XmlRootElement tags with names in Capital letters. f.e Person.

      This means that the object name will be Person in the Swagger UI and also in the schema (.xsd) that i generate from the code.


      But, the default JacksonJsonProvider doesn't ready the JAXB annotations which means that it doesn't accept f.e Person, i need to change it to person in the json data. It works like expected when i send application/xml + xml.


      I've tried a lot of different ways to make the RestEasy implementation use the JacksonJsonProvider but nothing seems to work. I get this in the error log:


      at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1315)

      [Server:DEV1Domain7111-efsbssdev01]     at org.codehaus.jackson.jaxrs.JacksonJsonProvider.readFrom(JacksonJsonProvider.java:419)

      [Server:DEV1Domain7111-efsbssdev01]     at org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl.proceed(MessageBodyReader


      I want that to read JacksonJaxbJsonProvider


      Any ideas ?


      Regards, Björn