Il 27/09/2016 19:17, Ron Sigal ha scritto:

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?

I agree, it predates WFLY, which is when Jackson 2 was pulled in afaics.

And what about

To enable JacksonJsonpInterceptor in WildFly, you need to import annotations from org.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.

+1

Cheers
Alessio