I agree, it predates WFLY, which is when Jackson 2 was pulled in afaics.The Resteasy users guide says
21.4. Using Jackson 2.2.x Inside of JBoss AS7
If you want to use Jackson 2.2.x inside of JBoss AS7 you'll have to create a jboss-deployment-structure.xml file within your WEB-INF directory. By default AS7 includes the Jackson 1.9.x JAX-RS integration, so you'll want to exclude it from your dependencies, and add the jackson2 ones.
<jboss-deployment-structure> <deployment> <exclusions> <module name="org.jboss.resteasy.resteasy-jackson-provider"/> </exclusions> <dependencies> <module name="org.jboss.resteasy.resteasy-jackson2-provider" services="import"/> </dependencies> </deployment> </jboss-deployment-structure>
Besides the fact that we're referring to AS 7 (maybe we should also address JBoss 4.2.3.Final, my favorite), I'm guessing that this step is no longer necessary. Can someone verify that?
+1And what about
To enable JacksonJsonpInterceptor in WildFly, you need to import annotations fromorg.jboss.resteasy.resteasy-jackson-provider
module using jboss-deployment-structure.xml:<jboss-deployment-structure> <deployment> <dependencies> <module name="org.jboss.resteasy.resteasy-jackson-provider" annotations="true"/> </dependencies> </deployment> </jboss-deployment-structure>That also seems to be outdated. Thanks.