Before the SiteMinder Agent can operate with the WebLogic Server, you must configure SiteMinder Agent-related environment settings in one of the following:
Note: The startWebLogic.cmd (Windows) or startWebLogic.sh (Unix) script that contains the environment configuration is placed in the "bin" folder of a created domain.
For details regarding the Server Start configuration page, see the WebLogic documentation.
To set the environment for the SiteMinder Agent on a standalone WebLogic Server on Windows, do the following:
Example: Set the Environment for a Standalone WebLogic Server on Windows
The following procedure is an example of how to set the environment for the SiteMinder Agent on a standalone WebLogic Server on Windows.
The startWebLogic.cmd is located in wl_install\user_projects\domains\your_domain\bin
where wl_install is the installed location of the WebLogic application server, and your_domain is the name of the WebLogic domain where the SiteMinder Agent is installed.
set SMASA_HOME=ASA_HOME
Specifies the installed location of the SiteMinder Agent.
set SMASA_CLASSPATH=%SMASA_HOME%\conf; %SMASA_HOME%\lib\smagentapi.jar; %SMASA_HOME%\lib\smjavasdk2.jar; %SMASA_HOME%\lib\sm_cryptoj.jar; %SMASA_HOME%\lib\smclientclasses.jar;
The modified CLASSPATH variable should resemble the following:
set CLASSPATH=%SMASA_CLASSPATH%;%CLASSPATH%
set SM_JAVA_OPTIONS= -Dsmasa.home=%SMASA_HOME%
The modified execution entry should resemble the following:
if "%WLS_REDIRECT_LOG%"=="" ( echo Starting WLS with line: echo %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% %SM_JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS% %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% %SM_JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS% ) else ( echo Redirecting output from WLS window to %WLS_REDIRECT_LOG% %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% %SM_JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS% >"%WLS_REDIRECT_LOG%" 2>&1 )
To set the environment for the SiteMinder Agent on a standalone WebLogic Server on UNIX, do the following:
Example: Set the Environment for a Standalone WebLogic Server on UNIX
The following procedure is an example of how to set the environment for the SiteMinder Agent on a standalone WebLogic Server on UNIX.
The startWebLogic.sh is located in wl_install/user_projects/domains/your_domain/bin
where wl_install is the installed location of the WebLogic application server, and your_domain is the name of the WebLogic domain where the SiteMinder Agent is installed.
SMASA_HOME=ASA_HOME
Specifies the installed location of the SiteMinder Agent.
SMASA_CLASSPATH=$SMASA_HOME/conf: $SMASA_HOME/lib/smagentapi.jar; $SMASA_HOME/lib/smjavasdk2.jar; $SMASA_HOME/lib/sm_cryptoj.jar: $SMASA_HOME/lib/smclientclasses.jar:
The modified CLASSPATH variable should resemble the following:
CLASSPATH=${SMASA_CLASSPATH}:${CLASSPATH}
SM_JAVA_OPTIONS= -Dsmasa.home=$SMASA_HOME
The modified execution entry should resemble the following:
${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} ${SM_JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME}
| Copyright © 2010 CA. All rights reserved. | Email CA about this topic |