Hi,
as described in the resteasy guide the default provider should be jettison.
But when I create a rest service under wildfly 10 it uses the jackson 2 provider as default.
I tried to explicitly inactivate the jackson-x providers to enforce the jettison provider but nothing works. I put follow in my jboss-deployment-structure.xml:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.3">
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment>
<dependencies>
....
</dependencies>
</deployment>
<sub-deployment name="test.jar">
<exclusions>
<module name="org.jboss.resteasy.resteasy-jackson-provider" />
<module name="org.jboss.resteasy.resteasy-jackson2-provider" />
</exclusions>
<dependencies>
<module name="org.jboss.resteasy.resteasy-jettison-provider" />
</dependencies>
</sub-deployment>
</jboss-deployment-structure>
Also using the annotation @NoJackson did not work. As I used this annoation reast easy could not locate a valid json provider. (Message: org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object of type...)
I also tried to add the @BadgerFish Annoation to force this format. But this was not working.
So what should be the default provider.
How could I enable Jettison
How can I add pretty formatting using the jettison provider (it is only supported when using the jackson-2.x provider)
How can I use atom links when using the jackson-2.x provider
Kind regards,
Marco