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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content