My Oracle Support Banner

How to load the Bouncy Castle security app into an database (Doc ID 1498899.1)

Last updated on MARCH 04, 2022

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.


The Bouncy Castle app is dependent on 3 security interfaces from JDK 1.5 rt.jar that are missing from the Oracle JVM and attempting to load will receive an error such as:

ORA-29552: verification warning: java.lang.NoClassDefFoundError: java/security/interfaces/ECPrivateKey

This is known bug 14572113 which is resolved in Oracle 12c and since included in the patchset. Typically this would mean that you would not be able to load the app into since you can not modify the Oracle JServer / Oracle JVM that is built into the database and JVM bugs are not "backportable". However, the JVM team has provided a workaround in bug:14572113 and this note is provided to document the steps needed to load these missing classes into an Oracle Database which has a JDK 1.5 based JVM.

Note: These classes are installed in the next release of Oracle RDBMS Server so this workaround is only applicable to Also, this workaround is only known to allow Bouncy Castle to be loaded and may not work for other applications. Additionally, it was only tested on Linux and Solaris. Support has confirmed that the rt.jar file has been broken out into separate jar files on IBM AIX so these classes are in security.jar file on IBM platforms. Also, although we expect this to work, we do not support it. If you encounter issues, we suggest you work through them in the forums rather than a Service Request with Oracle Support.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.