Technical data

2 Starting and Stopping WebLogic Servers
2-12 Administration Guide
But c:\MyManagedRootDir is not.
By convention, the root directory for an Administration Server is named after the
domain. For example, if the domain is named
myDomain, the root directory for the
Administration Server is
c:\config\myDomain.
Multiple instances of WebLogic Server can use the same root directory. However, if
your server instances share a root directory, make sure that all relative filenames are
unique. For example, if two servers share a directory and they both specify
.\MyLogFile, then each server instance will overwrite the other’s .\MyLogFile.
By default, the directory from which you start a WebLogic Server instance is the
server’s root directory. For example, if you run the
weblogic.Server command from
c:\config\MyDomain, then c:\config\MyDomain is the root directory.
If you want to start a server instance from a location other than the server’s root
directory, you can specify a different location by passing the following argument to the
weblogic.Server startup command:
-Dweblogic.RootDirectory=path
where path specifes the directory above the config\server-root directory.
For example, if a server’s root directory is
c:\myproject\config\Mydomain, then
specify
-Dweblogic.RootDirectory=c:\myproject.
To make it easier to maintain your domain configurations and applications across
upgrades of WebLogic Server software, it is recommended that the root directory not
be the same as the installation directory for the WebLogic Server software.
Starting the Administration Server Using a Script
Sample scripts are provided with the WebLogic Server distribution that you can use to
start WebLogic Servers. You will need to modify these scripts to fit your environment
and applications. Separate sample scripts are provided for starting the Administration
Server and the Managed Server. The scripts for starting the Administration Server are
called
startWebLogic.sh (UNIX) and startWeblogic.cmd (Windows). These
scripts are located in the configuration subdirectory for your domain.
To use the supplied scripts:
n Pay close attention to classpath settings and directory names.