Tuesday, 26 July 2011

Upgrading from weblogic 6.x versions to7.x, 8.x

Upgrading the Pet Store Application from WebLogic Server 7.0 to WebLogic Server 8.1
The procedures described below assume that WebLogic Server 7.0 and WebLogic Server 8.1 are both installed.
The procedure involves moving your application domain to a new directory and then updating paths in the config.xml and start scripts.
You may not need to move your domain. BEA Systems recommends that application domains reside outside the WebLogic Server installation directory.
  1. Create a new directory in which to upgrade the WebLogic Server 7.0 domain to a WebLogic Server 8.1 domain. In this walkthrough, the new directory is called C:\petstorefrom70to81.
  2. From the WebLogic Server 7.0 installation, copy the WL_HOME\samples\server directory and its contents to C:\petstorefrom70to81.
  3. Open the config.xml file in C:\petstorefrom70to81\server\config\petstore. Make the following edits.
    1. Edit the application paths to point to C:\petstorefrom70to81. Replace:
    2. Path="WL_HOME\samples\server\stage\petstore\petstore.ear" TwoPhase="true"> with: Path="c:\petstorefrom70to81\server\stage\petstore\petstore.ear" TwoPhase="true">
    3. For petstoreadmin.ear, opc.ear, and supplier.ear, and tour.war, likewise replace the WebLogic Server 7.1 WL_HOME path with the c:\petstorefrom70to81 path.
    4. Change the path to the Java compiler, if necessary.
  4. Open the startpetstore.cmd (or .sh) script in C:\petstorefrom70to81\server\config\petstore and make the following changes:
    1. Change %JAVA_HOME% from the JDK your WebLogic Server 7.0 installation uses to the JDK your WebLogic Server 8.1 installation uses. For example:
    2. set JAVA_HOME=WL_HOME\jdk131_03 becomes: set JAVA_HOME=WL_HOME\jdk141
    3. Change %SAMPLES_HOME% from the WebLogic Server 7.0 \samples directory to the WebLogic Server 8.1 \samples directory. For example:
    4. set SAMPLES_HOME=WL_HOME\samples becomes: set SAMPLES_HOME=C:\petstorefrom70to81
    5. Change the startWLS.cmd (or .sh) path from the WebLogic Server 7.0 installation to the WebLogic Server 8.1 installation:
    6. call "C:\bea70sp1\weblogic700\server\bin\startWLS.cmd"
    7. Under JAVA_OPTIONS, change the cacerts path from the WebLogic Server 7.1 installation to the WebLogic Server 8.1 installation.
    8. -Dweblogic.security.SSL.trustedCAKeyStore=WL_HOME\server\lib\cacerts
  5. Test the upgrade by starting Pet Store using the startpetstore.cmd or .sh command, and then browse to http://localhost:7001/petstore to run the application.


Upgrading the Pet Store Application from WebLogic Server 6.1 Service Pack 4 to WebLogic Server 8.1
The procedures described below assume that WebLogic Server 6.1 and WebLogic Server 8.1 are both installed.
The procedure involves moving your application domain to a new directory and then updating paths in the config.xml and start scripts.
You may not need to move your domain. BEA Systems recommends that application domains reside outside the WebLogic Server installation directory.
  1. Create a new directory in which to upgrade the WebLogic Server 6.1 domain to a WebLogic Server 8.1 domain. In this walkthrough, the new directory is called C:\petstorefrom61to81.
  2. Copy these three directories and their contents from the WebLogic Server 6.1 WL_HOME directory to C:\petstorefrom61to81: WL_HOME\config
    WL_HOME\pstore
    WL_HOME\samples
  3. Open the config.xml file in C:\petstorefrom61to81\server\config\petstore. Make the following edits.
    1. Edit the application paths to point to C:\petstorefrom61to81. Replace:
    2. Path="WL_HOME\config\petstore\applications"> with: Path="c:\petstorefrom61to81\config\petstore\applications"> Perform this substitution for the petstore.ear and petstoreadmin.ear paths as well.
    3. For the server's RootDirectory setting, likewise replace the WebLogic Server 7.1 WL_HOME path with the c:\petstorefrom70to81 path. That is, replace:
    4. Name="petstoreServer" RootDirectory="WL_HOME" with Name="petstoreServer" RootDirectory="C:\petstore61to81"
    5. Change the path to the Java compiler, if necessary.
  4. Open the startpetstore.cmd (or .sh) script in C:\petstorefrom61to81\config\petstore and make the following changes:
    1. Remove the line:
    2. cd ..\..
    3. Change %JAVA_HOME% from the JDK your WebLogic Server 7.0 installation uses to the JDK your WebLogic Server 8.1 installation uses. For example:
    4. set JAVA_HOME=WL_HOME\jdk131 becomes: set JAVA_HOME=WL_HOME\jdk141
    5. Change %BEA_HOME% from the WebLogic Server 6.1 home directory to the WebLogic Server 8.1 home directory.
    6. Edit the line that checks which directory contains the script from:
    7. if not exist lib\weblogic.jar goto wrongplace to read: if not exist C:\bea81Dec4beta\weblogic81b\server\lib\weblogic.jar goto wrongplace
    8. Change the classpath from
    9. set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.WL_HOME61\samples\eval\cloudscape\lib\cloudscape.jar;.\config\petStore\serverclasses to set CLASSPATH=.;WL_HOME81\server\lib\weblogic.jar;.C:\petstorefrom61to81\samples\eval\cloudscape\lib\cloudscape.jar;C:\petstorefrom61to81\config\petstore\serverclasses
  5. Test the upgrade by starting Pet Store using the startpetstore.cmd or .sh command, and then browse to http://localhost:7001/estore to run the application.


No comments:

Post a Comment