Announcement Announcement Module
No announcement yet.
DOMXMLSignatureFactory cannot be cast to XMLSignatureFactory Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • DOMXMLSignatureFactory cannot be cast to XMLSignatureFactory

    Has anyone ever seen this kind of exception before?

    javax.xml.crypto.NoSuchMechanismException: class configured for XMLSignatureFactory: reFactory not a XMLSignatureFactory

    If so how did you correct?


  • #2
    So, I'd really like to claim credit for thinking of this, but I'll be honest and defer to my team lead

    It turns out that striping the javax classes out of the org.apache.santuario.xmlsec.jar file was what did the trick!

    I extracted the jar file to my local directory, removed the javax package and re-generated the jar file.

    I use maven to build, so I added an entry, specifying the new version of xmlsec.jar to use and I was good to go!

    BTW, org.apache.santuario.xmlsec.jar is a transistive dependency pulled in by spring-ws-security.jar.

    I used the maven plugin dependency:tree to show me that.