Previous Topic: Set the WebLogic Environment on Windows

Next Topic: SOA Agent for Oracle WebLogic Logging

Set the WebLogic Environment on UNIX

Before the SOA Agent can operate with the WebLogic Application Server on UNIX, you must configure SOA Agent-related environment settings in the location appropriate for your environment.

To configure SOA Agent-related environment settings

  1. Define a SOA_HOME variable as follows:
    SOA_HOME=SOA_HOME
    
    SOA_HOME

    The location where the SOA Agent for WebLogic is installed.

  2. Define the SMSOA_CLASSPATH as follows:
    SMSOA_CLASSPATH=${SOA_HOME}/config:
    ${SOA_HOME}/lib/smagentapi.jar:
    ${SOA_HOME}/lib/thirdparty/cryptojFIPS.jar: 
    ${SOA_HOME}/lib/soaagent-proxy.jar:
    ${SOA_HOME}/lib/thirdparty/xalan.jar
    
    export SMSOA_CLASSPATH
    
  3. Add ${SMSOA_CLASSPATH} to the beginning of the CLASSPATH definition. The modified CLASSPATH variable should resemble the following:
    CLASSPATH=${SMSOA_CLASSPATH}${CLASSPATHSEP}${CLASSPATH}
    export CLASSPATH
    
  4. Define the SM_JAVA_OPTIONS variable as follows:
    SM_JAVA_OPTIONS="-DJAVA_AGENT_ROOT=${SOA_HOME}
    -Dlog.log-config-properties=${SOA_HOME}/config/log-config.properties 
    -Djava.security.auth.login.config==${SOA_HOME}/config/soa_jaas.config
    -Djavax.xml.soap.SOAPFactory=weblogic.xml.saaj.SOAPFactoryImpl
    -Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl"
    
  5. Add ${SM_JAVA_OPTIONS} to the execution entry. 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} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${PROXY_SETTINGS} ${SERVER_CLASS}"
    
  6. Save your changes.
  7. Restart the WebLogic Application Server for changes to take effect.

More information:

WebLogic Environment Setting Locations