title: SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' not recognized
body: <p>I am receiving this error while unmarshalling a class. I'm using Amazon's mTurks along with Spring, Maven and (surprise, surprise) a xerces issue has reared it's head.</p>
  
  <p>I've played with the POM in many different ways to try and iron out the problem but I can't seem to figure out the solution.</p>
  
  <p>I'm using a mavenized version of mturks found here:
  <a href="https://github.com/tc/java-aws-mturk" rel="nofollow">https://github.com/tc/java-aws-mturk</a></p>
  
  <p>I've explicitly excluded the xerces stuff from mturks:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.amazon&lt;/groupId&gt;
      &lt;artifactId&gt;java-aws-mturk&lt;/artifactId&gt;
      &lt;version&gt;1.2.2&lt;/version&gt;
      &lt;exclusions&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;commons-lang&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
          &lt;/exclusion&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;apache-xerces&lt;/groupId&gt;
              &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
          &lt;/exclusion&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;apache-xerces&lt;/groupId&gt;
              &lt;artifactId&gt;resolver&lt;/artifactId&gt;
          &lt;/exclusion&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;apache-xerces&lt;/groupId&gt;
              &lt;artifactId&gt;xml-apis&lt;/artifactId&gt;
          &lt;/exclusion&gt;
      &lt;/exclusions&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>And explicitly included both xerces-impl and xml-api dependencies:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;xerces&lt;/groupId&gt;
      &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
      &lt;version&gt;2.11.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;xml-apis&lt;/groupId&gt;
      &lt;artifactId&gt;xml-apis&lt;/artifactId&gt;
      &lt;version&gt;1.4.01&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I've tried all four combinations with xercesImpl versions 2.9.1, 2.11.0 and xml-apis versions 1.4.01, 2.0.2 to no avail.</p>
  
  <p>xercesImpl 2.11.0 and xml-api 2.0.2 leads to a different error:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
  </code></pre>
  
  <p>How can I resolve this issue?</p>