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 Employee on Apr 22, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000033799
Applies ToRSA Product Set: ClearTrust, 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
CauseAccess 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.
Example:
AXM_HOME=/opt/axm/server-62
 

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

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

Attachments

    Outcomes