Issue:
We have implemented Custom Agent to run with WebLogic, and when starting the WebLogic server, then the Agent cannot initialize correctly and returns error :
Initialising the Security Framework...........................
FATAL ERROR: Exception from System.loadLibrary java.lang.UnsatisfiedLinkError: no smcommonutil in java.library.path
FATAL ERROR: Exception from AgentAPI.initialize() java.lang.UnsatisfiedLinkError: netegrity.siteminder.javaagent.AgentAPI.initialize()V
<<<<< ENCOUNTERED AN ERROR DURING THE SERVER STARTUP OPERATIONS
We've configured the .bash_profile for WebLogic run user :
CASHCOMP=/opt/ca/sdk export CASHCOMP
CALIB=/opt/CA/SharedComponents/CAPKI/CAPKI5/Linux/amd64/64/lib export
CALIB CAPKIHOME=/opt/CA/SharedComponents/CAPKI export CAPKIHOME
PATH=$PATH:/usr/java/jdk1.8.0_131/bin:/opt/CA/SharedComponents/CAPKI/CAPKI5/Linux/amd64/64/lib:/opt/CA/SharedComponents/CAPKI/CAPKI5/Linux/amd64/64:/opt/ca/sdk/bin64
export PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/12c/wlserver/server/native/linux/x86_64/libnodemanager.so:/opt/CA/SharedComponents/CAPKI/CAPKI5/Linux/amd64/64/lib:/opt/orawls/product/ca/sdk/bin64:/opt/CA/SharedComponents/CAPKI/CAPKI5/Linux/amd64/64:/opt/ca/sdk/java/:/opt/ca/sdk/samples64/smjavaagentapi
How can we fix this ?
Resolution:
If you run the Custom Agent as JNI, you have to set the following :
Implement the JNI API
Linux: Change LD_LIBRARY_PATH to include install_path/sdk/bin so that
libsmjavaagentapi.so, libsmerrlog.so and libsmcommonutil.so can be
found.
https://docops.ca.com/ca-single-sign-on/12-8/en/programming/sdks/programming-in-java/agent-api-in-java
KB : KB000113617