Cannot configure WS-Security (signature) for web service client

Solution Unverified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.