JBoss Community

Re: AS7 7.1.1.Final: java.lang.ClassCastException: org.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory cannot be cast to javax.xml.crypto.dsig.XMLSignatureFactory

created by Gianluca Mazzaferro in JBoss AS 7 Development - View the full discussion

What application details do you need Stuart?

 

This is the stack trace

 

13:30:24,333 ERROR [stderr] (DefaultQuartzScheduler_Worker-6) java.lang.ClassCastException: org.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory cannot be cast to javax.xml.crypto.dsig.XMLSignatureFactory

  13:30:24,349 ERROR [stderr] (DefaultQuartzScheduler_Worker-6)           at javax.xml.crypto.dsig.XMLSignatureFactory.findInstance(XMLSignatureFactory.java:202)

  13:30:24,349 ERROR [stderr] (DefaultQuartzScheduler_Worker-6)           at javax.xml.crypto.dsig.XMLSignatureFactory.getInstance(XMLSignatureFactory.java:186)

  13:30:24,349 ERROR [stderr] (DefaultQuartzScheduler_Worker-6)           at com.gpi.hbook.util.DetachedDigitalSignature.validate(DetachedDigitalSignature.java:326)

 

I saw that XMLSignatureFactory.java:202 doesn't correspond to correct line to XMLSignatureFactory contained into running JVM rt.jar. Seems to me that jboss runtime use the one contained into module org\apache\santuario\xmlsec. This module contains xmlsec-1.5.1.jar: is this outofdate or newer version?

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community