Can not login to iManager, "Unable to create AdminNamespace. java.lang.NoClassDefFoundError: novell.jclient.JCException"

  • 7010133
  • 07-Feb-2012
  • 27-Apr-2012

Environment

Novell eDirectory 8.8 for Linux
Novell eDirectory 8.8 for Solaris
Novell eDirectory 8.8 for HP-UX
Novell eDirectory 8.8 for AIX
Novell iManager 2.7.4
Novell iManager 2.7.3

Situation

Can not login to iManager.

After supplying the credentials, the error message retuned is:
"Unable to create AdminNamespace. java.lang.NoClassDefFoundError: novell.jclient.JCException"
or
"Unable to create AdminNamespace. java.lang.NoClassDefFoundError: com.novell.admin.ns.nds.jclient.NDSNamespaceImpl (initialization failure)

Resolution

Usually this error is related to a missing library, missing symbolic link, incorrect symbolic link, an old library, or old jclient.jar.

Verify the following two files are present
/opt/novell/eDirectory/lib/jclient.jar
/usr/share/java/ldap.jar

In the /var/opt/novell/tomcat5/shared/lib/ check that the following symbolic links are created, the, permissions are correct, the owner is wwwrun, and the group is www.
 lrwxrwxrwx 1 wwwrun www 38 2011-10-25 09:01 jclient.jar -> /opt/novell/eDirectory/lib/jclient.jar
lrwxrwxrwx 1 wwwrun www 24 2011-10-25 09:01 ldap.jar -> /usr/share/java/ldap.jar

Ensure the symbolic link in the /var/opt/novell/tomcat5/webapps/ for nps is correct.
 lrwxrwxrwx 1 root   root 28 2011-10-25 09:01 nps -> /var/opt/novell/iManager/nps

 
In a few instances it the LD_LIBRARY_PATH setting on the server has interfered with the proper loading of novell-tomcat5 for iManager.
 
An easy way to verify that it is not the LD_LIBRARY_PATH is to set the path as empty in the /etc/init.d/novell-tomcat5 script. Add the following line:
 
LD_LIBRARY_PATH=""

Additional Information

The same error will be seen in situations where iManager was installed without eDirectory. The root cause in this particular scenario is that the jclient.jar file in /opt/novell/eDirectory/lib is not installed with iManager. The RPM that would install it is novell-NDSbase-32bit-8.8.6.x.x.x so it can be extracted and installed from there, or copied over from a functional OES server.