Bouncy Castle Provider Class Not Found in Fuse 7.1.1

Solution Verified - Updated -

Issue

We are deploying an OSGi bundle to the Fuse 7.1.1 container that is creating SAML authentication assertions in the outbound SOAP headers. These assertions need to be digitally signed. We are using the out-of-the-box version of WSS4J (1.6.7) which is using the bouncy castle security provider to faciliate the signature process. When we run this code, we are getting a ClassNotFoundException on the org.bouncycastle.jce.provider.BouncyCastleProvider class.

DEBUG | t.request.queue] | WSSConfig                        | 198 - org.apache.ws.security.wss4j - 1.6.7 | The provider BC could not be added: org.bouncycastle.jce.provider.BouncyCastleProvider not found by org.apache.ws.security.wss4j [198]
java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider not found by org.apache.ws.security.wss4j [198]

Environment

Fuse ESB 7.1.1 Rollup 1

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