title: What is wrong with my jboss-deployment-structure.xml? I'm trying to exclude a dependancy. The exclusion works in WAR but not in EAR
body: <p>So we have found that JBoss 7.1 EAP provides its own version of Jackson-Databind.  This version interferes with our deployment as we have a newer version in the WAR.  We've proven out this theory by including this jboss-deployment-structure.xml at the WAR level's WEB-INF:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;jboss-deployment-structure&gt;
      &lt;deployment&gt;
          &lt;exclude-subsystems&gt;
              &lt;subsystem name=&quot;jaxrs&quot;/&gt;
          &lt;/exclude-subsystems&gt;
      &lt;/deployment&gt;
  &lt;/jboss-deployment-structure&gt;
  </code></pre>
  <p>This lets the WAR deploy on its own without errors when it previously received the errors.
  However, when trying to implement the same solution at the EAR level of deployment I've been unsuccessful.  I've tried putting the jboss-deployment-structure.xml in the META-INF, WEB-INF, and root level of the EAR.  I've done that with all number of different configurations but I can't get it to correctly exclude jaxrs. It's worth mentioning that this is my first run on JBoss configurations and I could be missing something incredibly simple.</p>
  <p>EAR level file:</p>
  <pre><code>&lt;jboss-deployment-structure xmlns=&quot;urn:jboss:deployment-structure:1.2&quot;&gt;
      &lt;deployment&gt;
          &lt;exclude-subsystems&gt;
              &lt;subsystem name=&quot;jaxrs&quot; /&gt;
          &lt;/exclude-subsystems&gt;
      &lt;/deployment&gt;
      &lt;sub-deployment name=&quot;myWar.war&quot;&gt;
          &lt;exclude-subsystems&gt;
              &lt;subsystem name=&quot;jaxrs&quot; /&gt;
          &lt;/exclude-subsystems&gt;
      &lt;/sub-deployment&gt;
  &lt;/jboss-deployment-structure&gt;
  </code></pre>