Sun JCE 1.2.2 Throws java.lang.SecurityException (Doc ID 397497.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version: 9.0.2.0.0 to 9.0.3.1.0
Information in this document applies to any platform.

Goal

Custom app using Sun JCE 1.2.2 to continue working fine beyond Oct 2006

Since 23rd Oct 2006, if Application Server is restarted, application using Sun JCE 1.2.2 start throwing the following error

On first access after the start up of the container
java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs

On further access
java.lang.NoClassDefFoundError

This error occured without making any changes to the applictaion, software or the environment

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms