title: JBoss EAP 7 => ClassCastException: org.apache.jcp.xml.dsig.internal.dom.DOMReference cannot be cast to org.jcp.xml.dsig.internal.dom.DOMReference
body: <p>I am getting this error:</p>
  
  <blockquote>
    <p>java.lang.ClassCastException: org.apache.jcp.xml.dsig.internal.dom.DOMReference cannot be cast to org.jcp.xml.dsig.internal.dom.DOMReference</p>
  </blockquote>
  
  <p>Maybe the problem is on the jboss-deployment-structure.xml of the servlet:</p>
  
  <pre class="lang-xml prettyprint-override"><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1"&gt;
    &lt;deployment&gt;
      &lt;dependencies&gt;
        &lt;module name="javax.api"/&gt;
        &lt;module name="org.apache.santuario.xmlsec"/&gt;
        &lt;module name="org.apache.xerces" /&gt;
        &lt;system export="true"&gt;
          &lt;paths&gt; 
            &lt;path name="com/sun/org/apache/xerces/internal/dom"/&gt;
          &lt;/paths&gt;
        &lt;/system&gt;
      &lt;/dependencies&gt;
    &lt;/deployment&gt;
  &lt;/jboss-deployment-structure&gt;
  </code></pre>
  
  <p>Do you have any hint of whats going on?</p>
  
  <p>Thanks in advance.</p>