title: Configure Wildfly 8.1 to use Jettison
body: <p>I have an interesting problem in that my Wildfly 8.1 installation is using Jackson (not Jackson 2) for marshalling classes to JSON. I would like to use Jettison in order to take advantage of the JAXB annotations I have in my classes. </p>
  
  <p>To force the server to use Jettison instead of Jackson, I've performed the following steps :</p>
  
  <ol>
  <li><p>Modified the POM.xml dependencies to depend on the <strong>resteasy-jettison-provider</strong> module with the scope set as <strong>provided</strong></p>
  
  <p>&lt; dependency &gt;<br/>
      &lt; groupId &gt;org.jboss.resteasy&lt;/ groupId &gt;<br/>
      &lt; artifactId &gt;resteasy-jettison-provider&lt;/ artifactId &gt;
      &lt; version &gt;3.0.8.Final&lt;/ version &gt;<br/>
      &lt; scope &gt;provided&lt;/ scope &gt;<br/>
  &lt;/ dependency &gt;</p></li>
  <li><p>Modified the <strong>jboss-deployment-structure.xml</strong> in my WEB-INF directory to include the jettison module and exclude all jackson modules:</p>
  
  <p>&lt; jboss-deployment-structure &gt;<br/>
      &lt; deployment &gt;<br/>
        &lt; exclusions &gt;<br/>
          &lt; module name="org.jboss.resteasy.resteasy-jackson-provider" /&gt;<br/>
          &lt; module name="com.fasterxml.jackson.core.jackson-core" /&gt;<br/>
          &lt; module name="com.fasterxml.jackson.core.jackson-annotations" /&gt;<br/>
          &lt; module name="com.fasterxml.jackson.core.jackson-databind" /&gt;<br/>
          &lt; module name="com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider" /&gt;<br/>
          &lt; module name="org.jboss.resteasy.resteasy-jackson2-provider" /&gt;<br/>
        &lt;/ exclusions &gt;<br/>
        &lt; dependencies &gt;<br/>
          &lt; module name="org.jboss.resteasy.resteasy-jettison-provider" /&gt;<br/>
        &lt;/ dependencies &gt;<br/>
      &lt;/ deployment &gt;<br/>
    &lt;/ jboss-deployment-structure &gt;<br/></p></li>
  </ol>
  
  <p>When I start the server, I send a simple bit of JSON to log into my application:</p>
  
  <pre><code>{ 
      "authRequest":   
      { 
        "appLogin":"restful",
        "appPassword":"mypassword" 
      }
  }
  </code></pre>
  
  <p>However, I get the following exception from the server when I send this code snippet:</p>
  
  <pre>
      com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "authRequest" (class com.myapp.AppAuthRequest), not marked as ignorable
  </pre>
  
  <p>From that exception, it looks like Jackson is still being used, despite my configuration. </p>
  
  <p>Can anyone point out what I'm doing wrong or what misconfiguration I have?</p>