Skip navigation.

Configuring and Managing WebLogic SIP Server

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

Applying Patches Using InstallPatch

The following sections provide instructions for applying patches to WebLogic SIP Server instances:

 


Overview of the InstallPatch Utility

The WebLogic SIP Server container functionality is implemented using an Enterprise Application (EAR) named sipserver. To patch the sipserver implementation EAR, you add the patch JAR file to the domain directory and then use the InstallPatch utility to add the JAR the application.

InstallPatch automates the process of editing the sipserver MANIFEST class path, which defines the list of JAR files used by the application and their relative order. You can use InstallPatch to perform common patching operations such as:

Although it is possible to manually edit the MANIFEST class path in the sipserver application, BEA recommends using InstallPatch to avoid errors.

 


Required Environment for the InstallPatch Utility

To set up your environment for the InstallPatch utility:

  1. Move to the top level of the domain directory that you want to patch:
  2. cd BEA_HOME\user_projects\domains\mydomain

    In the above command, BEA_HOME refers to the top-level BEA installation directory (for example, c:\bea).

  3. Set the client environment using the command
  4. WLSS_HOME\server\bin\setAdminClientEnv.cmd

    where WLSS_HOME is the directory in which you installed WebLogic SIP Server (for example, c:\bea\wlss210).

 


Syntax for Invoking the InstallPatch Utility

The InstallPatch utility can run in either command-line or GUI mode. By default the utility runs in command-line mode. The syntax for using the utility in command-line mode is:

java com.bea.wcp.sip.tools.InstallPatch  
   [-mode (gui | cmdline)]
   -action (prepend | append | set | view)
   -patch filename.jar [-patch filename2.jar ...]
   [-help] [-verbose]

Note: All patch files must be located in the DOMAIN_DIR\sipserver\APP-INF\container directory, where DOMAIN_DIR is the top-level directory of the domain you are patching.

When running the utility in GUI mode, all other options are ignored. To run the utility in GUI mode, use the command:

java com.bea.wcp.sip.tools.InstallPatch -mode gui

Table 1-1 describes the arguments for the com.bea.wcp.sip.tools.InstallPatch utility.

Table 1-1 InstallPatch Arguments

Argument

Definition

-mode (gui | cmdline)

Specifies whether to run the utility in GUI mode or in command-line mode. Command-line mode is used by default. If you run the utility in GUI mode, all other arguments are ignored.

-action (prepend | append | set | view)

Specifies a single action to perform on the CLASSPATH in command-line mode:

  • prepend—Adds one or more JAR files to the beginning of the existing CLASSPATH. The JAR files must be specified in subsequent -patch arguments.

  • append—Adds one or more JAR files to the end of the existing CLASSPATH. The JAR files must be specified in subsequent -patch arguments.

  • set—Re-writes the entire CLASSPATH using the JAR files specified in subsequent -patch arguments. If you use the set action, note that you must specify the default implementation JAR files (./wlss_sp.jar and ./wlss.jar) as well as any patch files you want to add. See Example InstallPatch Commands for more information.

  • view—Displays the current CLASSPATH.

-patch filename.jar

Specifies the filename of a patch file to apply. You can apply multiple patches by specifying multiple -patch arguments. Multiple patches are applied in the order in which you specify them on the command line.

Note: All patch files must be located in the DOMAIN_DIR\sipserver\APP-INF\container directory, where DOMAIN_DIR is the top-level directory of the domain you are patching.

-mode gui

Starts the utility in GUI mode. You cannot use the -action or -patch arguments when running in GUI mode.

-help

Displays usage information.

-verbose

Displays verbose output for command-line mode.

 


Example InstallPatch Commands

The following examples assume an initial MANIFEST classpath of:

./wlss_sp.jar ./wlss.jar

To add a new patch JAR file to the beginning of the classpath:

java com.bea.wcp.sip.tools.InstallPatch -action prepend -patch CR567890_wlss210.jar

This yields the classpath:

./CR567890_wlss210.jar ./wlss_sp.jar ./wlss.jar

To add multiple patch JAR files to the end of the classpath:

java com.bea.wcp.sip.tools.InstallPatch -action append -patch CR567891_wlss210.jar -patch CR567892_wlss210.jar

This yields the classpath:

./CR567890_wlss210.jar ./wlss_sp.jar ./wlss.jar ./CR567891_wlss210.jar ./CR567892_wlss210.jar

To remove one or more patches, re-write the CLASSPATH using the set action, as in:

java com.bea.wcp.sip.tools.InstallPatch -action set -patch CR567890_wlss210.jar -patch wlss_sp.jar -patch wlss.jar -patch CR567891_wlss210.jar

This yields the classpath:

./CR567890_wlss210.jar ./wlss_sp.jar ./wlss.jar ./CR567891_wlss210.jar

To view the current classpath, use the -action view option with the utility:

java com.bea.wcp.sip.tools.InstallPatch -action view
The current Manifest Class-Path is: ./CR567890_wlss210.jar ./wlss_sp.jar ./wlss.jar ./CR567891_wlss210.jar

 


Editing the MANIFEST Classpath in GUI Mode

Running the InstallPatch utility in GUI mode enables you to reorder or delete existing patch files from the MANIFEST classpath. You invoke the utility in GUI mode using the command:

java com.bea.wcp.sip.tools.InstallPatch -mode gui

This yields a simple text editing window that shows the current classpath setting, as shown in Figure B-3.

Figure B-3 InstallPatch GUI Mode

InstallPatch GUI Mode


 

To rearrange the order of JARs in the classpath, simply copy and paste the filenames in the desired order, keeping a space between multiple filenames. Click Set Classpath to persist the changes or Quit to exit without making changes.

Note: You can use GUI mode to add new patch JAR files to the existing classpath only if you first manually copy those files to the APP-INF\container subdirectory of the sipserver application.

 

Skip navigation bar  Back to Top Previous Next