000038278 - 'Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider' error when running modifyhostname.sh on RSA Identity Governance & Lifecycle 7.1.1

Document created by RSA Customer Support Employee on Dec 31, 2019
Version 1Show Document
  • View in full screen mode

Article Content

Article Number000038278
Applies ToRSA Product Set: RSA Identity Governance & Lifecycle
RSA Version/Condition: 7.1.1
 
IssueWhen running modifyhostname.sh as the root user in RSA Identity Governance & Lifecycle 7.1.1, the script fails with an error during the recreation of SSL certificates as shown in the example below:
 

vm-01:~ # sudo modifyhostname.sh mynewmachine.virtualapps.com
Hostname : mynewmachine.virtualapps.com
user Name : avuser
Sys user : sys

Checking Oracle configuration...

ASM_SPFILE=+DG01/ASM/ASMPARAMETERFILE/registry.253.1023096691
AVDB_SPFILE=+DG01/AVDB/PARAMETERFILE/spfile.269.1023097859

Update hostname in server nodes table...


SQL*Plus: Release 12.1.0.2.0 Production on Wed Nov 13 04:01:36 2019

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Last Successful login time: Wed Nov 13 2019 02:51:44 -05:00

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Advanced Analytics
and Real Application Testing options

SQL>
1 row updated.

SQL>
1 row updated.

SQL> Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Advanced Analytics
and Real Application Testing options

Recreate SSL Certificates

Creating Aveksa CA for CN - mynewmachine.virtualapps.com
Args: createca mynewmachine.virtualapps.com y
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider

        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
        at java.lang.Class.getMethod0(Class.java:3018)
        at java.lang.Class.getMethod(Class.java:1784)
        at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 7 more
Failed to create Aveksa CA! with error code: 1


 
CauseThis is a known issue reported in engineering ticket ACM-102268. The error is caused by a missing jar file, bouncycastle-jce-jdk13-112.jar, in /home/oracle/database/lib.

 
ResolutionThere is no known resolution at this time.
 
WorkaroundAs the root user, login in to the RSA Identity Governance & Lifecycle server and follow the steps below:
  1. Copy the attached bouncycastle-jce-jdk13-112.jar to /home/oracle/database/lib.
  2. Change the user and group ownership of the file by running the command  


chown oracle:oinstall bouncycastle-jce-jdk13-112.jar 


  1. Change directory to /home/oracle/deploy/bin


cd /home/oracle/deploy/bin 


  1. Run modifyhostname.sh. It should successfully run without the above-mentioned error:  


modifyhostname.sh <new hostname>

 
 

Attachments

Outcomes