Back

Altering the "startWebLogic.cmd file"

Altering this file is necessary for automatic start up of the WebLogic application in addition to ensuring that troubleshooting log files are kept in the proper place.

Open the "startWebLogic.cmd" file located at:

"[drive letter]:/bea/c2gdomain/startWebLogic.cmd"

The following is a sample "StartWebLogic.cmd" file.  The entries that need to be added have been highlighted.

@rem *************************************************************************
@rem This script is used to start WebLogic Server for the domain in the 
@rem current working directory. This script simply sets the SERVER_NAME 
@rem variable and starts server.
@rem
@rem To create your own start script for your domain, all you need to set is 
@rem SERVER_NAME, then starts the server.
@rem
@rem Other variables that startWLS takes are:
@rem
@rem WLS_USER - cleartext user for server startup
@rem WLS_PW - cleartext password for server startup
@rem PRODUCTION_MODE - true for production mode servers, false for 
@rem development mode
@rem JAVA_OPTIONS - Java command-line options for running the server. (These
@rem will be tagged on to the end of the JAVA_VM and MEM_ARGS)
@rem JAVA_VM - The java arg specifying the VM to run. (i.e. -server, 
@rem -hotspot, etc.)
@rem MEM_ARGS - The variable to override the standard memory arguments
@rem passed to java
@rem
@rem For additional information, refer to the WebLogic Server Administration 
@rem Console Online Help(http://e-docs.bea.com/wls/docs81/ConsoleHelp/startstop.html)
@rem *************************************************************************

echo off
SETLOCAL

@rem Initialize the common environment.
set WL_HOME=C:\bea\weblogic81
@rem Set Production Mode. When this is set to true, the server starts up in
@rem production mode. When set to false, the server starts up in development
@rem mode. If it is not set, it will default to false.
set PRODUCTION_MODE=true

@rem Set JAVA_VENDOR to java virtual machine you want to run on server side.
set JAVA_VENDOR=Sun

@rem Set JAVA_HOME to java virtual machine you want to run on server side.
set JAVA_HOME=C:\bea\jdk141_02

call "%WL_HOME%\common\bin\commEnv.cmd" USE_CURRENT_JAVA_HOME

@rem Set SERVER_NAME to the name of the server you wish to start up.
set SERVER_NAME=htec2gd4

@rem Set WLS_USER equal to your system username and WLS_PW equal 
@rem to your system password for no username and password prompt 
@rem during server startup. Both are required to bypass the startup
@rem prompt. This is not recomended for a production environment.
set WLS_USER=ADMINUSERLOGIN
set WLS_PW=ADMINUSERPASSWORD

@rem Set JAVA_VM to java virtual machine you want to run on server side.
@rem set JAVA_VM=-server

@rem Set JAVA_OPTIONS to the java flags you want to pass to the vm. i.e.: 
@rem set JAVA_OPTIONS=-Dweblogic.attribute=value -Djava.attribute=value

@rem Set MEM_ARGS to the memory args you want to pass to java. For instance:
@rem if "%JAVA_VENDOR%"=="BEA" set MEM_ARGS=-Xms32m -Xmx200m
@rem set MEM_ARGS=

@rem Call WebLogic Server
set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%

"%JAVA_HOME%\bin\java" %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.password=%WLS_PW% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server >c:\bea\c2gdomain\common\c2gout.txt

ENDLOCA
L

Back