Setting up the WebLogic script file

You will modify each property in the <your_WebLogic_domain>/bin/startWebLogic.sh (or .cmd) file to set up the WebLogic script file..

About this task

If you are using HP-UX 11iv3, verify that your kernel parameters are set according to Oracle's recommendations before you set up the WebLogic application server. For these recommendations, refer to Oracle's site.

To set up the WebLogic script file:

Procedure

  1. The following properties are supplied by Oracle in the <your_WebLogic_domain>/bin/startWebLogic.sh (or .cmd) file. Modify each property listed in Table 1 according to its description.
    Table 1. StartWebLogic.sh properties
    Property Description
    JAVA_OPTIONS Java™ command line options for running the server.

    Depending on your JVM vendor, specify as follows:

    • For IBM®, set this value to -Xms768m -Xmx768m
    • For HP, set this value to -XX:MaxPermSize=512m -Xms768m -Xmx768m

    For Sun, set this value to -XX:MaxPermSize=512m -Xms768m -Xmx768m

    DBDRIVERS Specify the paths to your data base drivers as the first item in the value of the CLASSPATH.

    The out-of-the-box CLASSPATH setting is:

    CLASSPATH="${CLASSPATH}${CLASPATHSEP}${MEDREC_WEBLOGIC_CLASSPATH}"

    Change this so that the path to the drivers .jars is first. For example:

    DBDRIVERS=/<directory_path_to_oracle_drivers>/ojdbc6.jar

    CLASSPATH="${DBDRIVERS}${CLASSPATHSEP}${CLASSPATH}${CLASSPATHSEP}
    ${MEDREC_WEBLOGIC_CLASSPATH}"
    JITC_COMPILEOPTS For AIX®, specify as "NQCLSINIT"
    -Dfile.encoding To ensure that all the Sterling Selling and Fulfillment Foundation UI screens display UTF-8 characters, specify as follows after {JAVA_OPTIONS} for Java commands :
    -Dfile.encoding=UTF-8

    This is applicable to all the Sterling Selling and Fulfillment Foundation Java start-up scripts.

    -Dvendor System property. Specify as an argument to the Java command after {JAVA_OPTIONS}. Can be "shell"; or "weblogic"; depending upon whether datasource is being used or not.
    -Dvendor=shell
    -DvendorFile System property. Specify as an argument to the Java command after {JAVA_OPTIONS}.
    -DvendorFile=/servers.properties
    Example:
    ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=
    ${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} -Dfile.encoding=UTF-8 -Dvendor=shell 
    -DvendorFile=/servers.properties ${PROXY_SETTINGS} ${SERVER_CLASS}
  2. If you are using an HTTPS transport, download the Secure Socket Extension (JSSE) 1.0.3 package from here and add the following files to the <JAVA_HOME>/jre/lib/extn/ directory:
    • jnet.jar
    • jcert.jar
    • jsse.jar