Cannot configure WS-Security (signature) for web service client
Issue
- We're trying to configure programmatically the WS-Security for signature for a CXF web service client. See attached source code excerpt.
- On invocation of the web service, we get a
ClassCastException
:
org.apache.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory cannot be cast to javax.xml.crypto.dsig.XMLSignatureFactory
This may be related to the bug report (AS7-4248), but evidently, in EAP 6.0 GA, the problem still exists.
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.