000033799 - Tomcat server crashes when configuring axm-selfservice-gui with exception java.lang.UnsatisfiedLinkError: no LBJNIWrappers in java.library.path in RSA Access Manager

Document created by RSA Customer Support Employee on Aug 20, 2016Last modified by RSA Customer Support on Jun 14, 2018
Version 3Show Document
  • View in full screen mode

Article Content

Article Number000033799
Applies ToRSA Product Set: Access Manager
RSA Version/Condition: 6.2.x
Platform: Tomcat
O/S Version: Linux
IssueTomcat server crashes a few seconds after startup when axm-selfservice-gui-6.2 is configured
From the last lines of the catalina.out file it appears that some library is missing.

Native code library failed to load.
java.lang.UnsatisfieedLinkError: no LBJNIWrappers in java.library.path
CauseThe RSA Access Manager self-service console uses lockbox to encrypt sensitive data in the configuration files, the administrator's name and password.

Lockbox dependencies are located in the AXM_HOME\cst folder.  This folder needs to be in the library path of Tomcat at startup.
ResolutionThe LBJNIWrappers.so is included in the cst folder under the AXM_HOME directory.
Export this folder in the command line or add it to the startup script for tomcat.

Example of running at the command line to load the cst library before executing the startup script for tomcat:

[root@rhel64 bin]# export LD_LIBRARY_PATH=/opt/axm/server-62/cst:$LD_LIBRARY_PATH

Use the example in the startup scripts for the AxM servers as to how it would look in a script.



#LockBox env setup
OSTYPE=`uname -s`
if [ "$OSTYPE" = "AIX" ]; then
               export LIBPATH=$AXM_HOME/cst:$LIBPATH
               export LD_LIBRARY_PATH

This example from the aserver.sh defines the axm home directory and assumes the cst folder is under that directory.