Hello Colm, not yet due to lack of time. I separated the main project into two project so CXF libraries do not mess with Java libraries and the first project works fine without CXF (only signs XML documents) and the other project uses WS-Security with CXF. Thanks. Alejandro.
2015-05-01 12:32 GMT-03:00 coheigea [via CXF] < [email protected]>: > Hi Alejandro, > > Do you have any test-code to reproduce this issue? > > Colm. > > On Fri, May 1, 2015 at 12:30 AM, Alemoli <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=5756879&i=0>> wrote: > > > 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. > > > > > > -- > Colm O hEigeartaigh > > Talend Community Coder > http://coders.talend.com > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > 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-tp5756862p5756879.html > To unsubscribe from Class cast exception > org.jcp.xml.dsig.internal.dom.DOMKeyInfo cannot be cast to > org.apache.jcp.xml.dsig.internal.dom.DOMKeyInfo, click here > <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5756862&code=YWxlbW9saTE5NjlAZ21haWwuY29tfDU3NTY4NjJ8LTIzODcyNjk2OQ==> > . > NAML > <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- 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-tp5756862p5756957.html Sent from the cxf-user mailing list archive at Nabble.com.
