Specify library paths when using SiteMinder SDK with Tomcat (JNI java agent)
search cancel

Specify library paths when using SiteMinder SDK with Tomcat (JNI java agent)

book

Article ID: 273313

calendar_today

Updated On:

Products

SITEMINDER

Issue/Introduction


How to specify library paths when using SiteMinder SDK with Tomcat (JNI java agent)?

When using the SiteMinder SDK with Tomcat, depending on the system, 1 or both following is done:

  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=/{home_SDK}/bin64
    export CAPKIHOME=/opt/CA/SharedComponents/R1280SP1/CAPKI

Environment

 

Release : 12.8.4 and higher

 

Resolution


For the JNI API Java Agent, make sure:

  1. The LD_LIBRARY_PATH (linux) has reference to the libraries libsmjavaagentapi.so, libsmerrlog.so, and libsmcommonutil.so; 
  2. Ensure that can the JNI Java AgentAPI JAR file can be located when compiling or running an Agent that uses the Java Agent API. The JAR file is 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 (1).

 

Additional Information