installing / registering the Bouncy Castle JCE library as a JBoss Module

Solution Verified - Updated -


  • How do I install Bouncy Castle as a JBoss Module?
  • How to register the Bouncy Castle JCE library?
  • While deploying an application in JBoss EAP 6 getting the below exception:
java.lang.NoClassDefFoundError: Could not initialize class org.bouncycastle.jce.provider.BouncyCastleProvider
  • Error associated with the library bcprov-jdk15on-1.47.jar. The library is within the application packaged in a war and the deployment-structure.xml load file is used also in the war. Do you recommend another way to load this library, such as load as a module within the JBoss server?
  • Getting following errors when using Bouncy Castle provider error constructing MAC: JCE cannot authenticate the provider BC
  • I'm trying to add BouncyCastleProvider programmatically and put bcprov-jdk15on-VER.jar inside my war deployment, but I see this error: ****** SecretKeyFactory not available
  • After copying "bcprov-ext-jdk16-1.45.jar" and "bcprov-jdk16-1.45.jar" to $JAVA_HOME/jre/lib/ext/ and making the necessary entries in $JAVA_HOME/jre/lib/security/, the following issue is faced:
"java.lang.SecurityException: JCE cannot authenticate the provider BC"


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6
  • Bouncy Castle JCE security library

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