Exception "Unable to register security provider: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider" when invoking bin/client script

Solution Verified - Updated -

Issue

  • After patching Fuse 6.3 or A-MQ 6.3 to Rollup patch 20, or installing a new Fuse or A-MQ Rollup 20 product home, the bin/client shows the following exception
$ jboss-fuse-6.3.0.redhat-516/bin/client
client: JAVA_HOME not set; results may vary
Unable to register security provider: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider
Logging in as karaf
Password:^C 
$ cat jboss-fuse-6.3.0.redhat-516/bin/client | grep bcprov
    CLASSPATH="$CLASSPATH:$KARAF_HOME/system/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.jar"  

Environment

  • Fuse 6.3 Rollup 20
  • A-MQ 6.3 Rollup 20

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