Hello to everyone,this is my first post and English is not my native
languaje,so be patient with me.
I'm workin in a complex project with CXF using WS-Security and I have a
issue in a cast exception.
The project signs xml documents (XML Signature) and send them to a Web
Service using WS-Security.
This is the simplification process in pseudo-code:
Loop
Read xml document.
Sign xml document (via javax.xml.crypto.dsig.XMLSignature)
Send document to WS (WS-Security)
End Loop
For the first time (first loop),everything works fine,the document is signed
(veryfies ok) and sent (ok response from the WS).
For the second loop (CXF libaries are loaded in the first loop) the
signature process crash with the cast exception:
org.jcp.xml.dsig.internal.dom.DOMKeyInfo cannot be cast to
org.apache.jcp.xml.dsig.internal.dom.DOMKeyInfo
org.jcp.xml.dsig.internal.dom.DOMKeyInfo is part of the java library rt.jar
(java 1.7.0_67).
org.apache.jcp.xml.dsig.internal.dom.DOMKeyInfo is in xmlsec-1.5.7.jar
When CXF libs are loaded overlap Java lib causing this problem?
Any suggestions wolud be appreciated.
Thanks veru much!
Alejandro.
--
View this message in context:
http://cxf.547215.n5.nabble.com/Class-cast-exception-org-jcp-xml-dsig-internal-dom-DOMKeyInfo-cannot-be-cast-to-org-apache-jcp-xml-do-tp5756862.html
Sent from the cxf-user mailing list archive at Nabble.com.