How to specify library paths when using siteminder sdk with Tomcat (JNI java agent)
search cancel

How to specify library paths when using siteminder sdk with Tomcat (JNI java agent)

book

Article ID: 273313

calendar_today

Updated On:

Products

SITEMINDER

Issue/Introduction

When using the siteminder sdk with Tomcat, we are doing either 1, 2, or both of the following, depending on the system.

1. specify a symbolic link to the siteminder sdk library in Tomcat's lib directory
2. specify the following in setenv.sh in the Tomcat startup shell
export LD_LIBRARY_PATH=/opt/CA/siteminder/sdkR1280SP1/bin64
export CAPKIHOME=/opt/CA/SharedComponents/R1280SP1/CAPKI

Environment

Release : 12.8.4 and higher

Resolution

For the JNI API java agent, you will need to make sure :

1) The LD_LIBRARY_PATH (linux)  has the  libsmjavaagentapi.solibsmerrlog.solibsmcommonutil.so 

2) Ensure that can the JNI Java AgentAPI JAR file can be located when you compile or run an agent that uses the Java Agent API. The JAR file, smjavaagentapi.jar

3) Compile the Java Agent API application using javac. For an example, see java-build.bat or java-build.sh in the sample directory smjavaagentapi.

For full details , please section "Implement the JNI API" in the link below 

https://techdocs.broadcom.com/us/en/symantec-security-software/identity-security/siteminder/12-8/programming/sdks/programming-in-java/agent-api-in-java.html