RmiServer fails to start after upgrade to 9.3.3 on AIX: "NoClassDefFoundError"
search cancel

RmiServer fails to start after upgrade to 9.3.3 on AIX: "NoClassDefFoundError"

book

Article ID: 208338

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

After upgrade to 9.3.3  not able to start Applications Manager.

From the RmiServer log:

GMT 2020 RmiServer starting
Exception in thread "main" java.lang.NoClassDefFoundError: com.sun.net.ssl.internal.ssl.Provider
 at com.appworx.agent.AwEnvOptions.C(AwEnvOptions.java:174)
 at com.appworx.server.data.AxRmiServer.main(AxRmiServer.java:814)
Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.internal.ssl.Provider
 at java.net.URLClassLoader.findClass(URLClassLoader.java:610)
 at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:944)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:889)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:872)
 ... 2 more

AgentService.log:


Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: com.sun.net.ssl.internal.ssl.Provider
        at java.lang.J9VMInternals.prepareClassImpl(Native Method)
        at java.lang.J9VMInternals.prepare(J9VMInternals.java:303)
        at java.lang.Class.getMethodHelper(Class.java:1271)
        at java.lang.Class.getMethod(Class.java:1214)
        at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:556)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:538)
Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.internal.ssl.Provider
        at java.net.URLClassLoader.findClass(URLClassLoader.java:610)
        at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:944)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:889)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:872)
        ... 6 more
awstgmst:

 

In the java.security file we can observe that we are missing class.

List of providers and their preference orders:

security.provider.1=com.ibm.jsse2.IBMJSSEProvider2
security.provider.2=com.ibm.crypto.provider.IBMJCE
security.provider.3=com.ibm.security.jgss.IBMJGSSProvider
security.provider.4=com.ibm.security.cert.IBMCertPath
security.provider.5=com.ibm.security.sasl.IBMSASL
security.provider.6=com.ibm.xml.crypto.IBMXMLCryptoProvider
security.provider.7=com.ibm.xml.enc.IBMXMLEncProvider
security.provider.8=com.ibm.security.jgss.mech.spnego.IBMSPNEGO
security.provider.9=sun.security.provider.Sun

Environment

Product: Application Manager 9.3.3.

OS: AIX

Cause

After stopping distribution of jsse.jar and sunjce_provider.jar, explicit loading of com.sun.* classes fails on AIX. 

Resolution

Update to a fix version listed below or a newer version if available.

Applications.Manager 9.3.4 

Fix Status: Released

Workaround: 
Before upgrading to 9.3.3, take backup of the following files:
1. $AM_HOME/web/classes/jsse.jar
2. $AM_HOME/web/classes/sunjce_provider.jar
After upgrading/installing 9.3.3, copy the two files to $AM_HOME/web/classes..