Inc. Server User Manual

B Upgrading the Pet Store Application and the Examples Server
B-20 BEA WebLogic Server 7.0 Upgrade Guide
Set Up the WebLogic Server 7.0 Environment with Your
6.0 Service Pack 2 Domain Configuration
It is important to keep the examples domain directory within the config directory when
you copy your 6.0
WL_HOME/config/examples directory to your 7.0 directory. For
example, you could use the following directory structure:
c:\my_application_domains\config\examples
To upgrade the WebLogic 6.0 Examples Server to WebLogic Server 7.0, you need to
edit the following two scripts:
setExamplesEnv.cmd
startExamplesServer.cmd
These scripts are provided in both DOS and Unix versions, .cmd and .sh, respectively.
The
setExamplesEnv script at SAMPLES_HOME\server\config\examples sets
certain environment variables in your development shell, the command window from
which you build and run the examples.
setExamplesEnv sets these variables:
CLASSPATH
contains all of the classes needed to build and run the examples
CLIENT_CLASSES
points to the directory that stores client classes
SERVER_CLASSES
points to the directory that stores server-side classes
EX_WEBAPP_CLASSES
points to the directory that stores classes used by the Examples Web Application
PATH
contains your system path, appended with the JDK and WebLogic Server bin
directories
The
java and javac commands use the CLASSPATH variable to locate the Java classes
that are required to compile source files and run examples.
CLASSPATH must contain
the appropriate classes for compiling and running the example.