Installing BEA WebLogic SIP Server

     Previous  Next    Open TOC in new window  Open Index in new window  View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Installing WebLogic SIP Server Using Silent-Mode Installation

The following sections describe how to install WebLogic SIP Server using the installation program in silent mode on both Windows and UNIX systems:

 


What Is Silent-Mode Installation?

Silent-mode installation is a way of setting installation configurations only once and then using those configurations to duplicate the installation on many machines. During installation in silent mode, the installation program reads the settings for your configuration from an XML file that you create prior to beginning the installation. The installation program does not display any configuration options during the installation process. Silent-mode installation works on both Windows and UNIX systems.

The instructions in this section assume that you have already acquired the installation program, either on CD or from the Web. For more information, see WebLogic SIP Server Distribution Methods.

 


Using Silent-Mode Installation: Main Steps

The silent-mode installation process has two primary steps:

  1. Create a template file that defines the configuration settings normally entered by a user during an interactive installation process, such as graphical-mode or console-mode installation. For example, values for the BEA Home directory, the product directory, and the components to be installed are supplied in a silent-mode template file.
  2. For a detailed procedure, see Creating a Silent-Mode Installation Template File. For a sample template file, see Sample Template File for Silent-Mode Installation.

  3. Start the silent-mode installation process using the values specified in the template file.
  4. For a detailed procedure, see Starting the Silent-Mode Installation Process on a Windows System or Starting the Silent-Mode Installation Process on a UNIX System.

Important Considerations for Silent-Mode Installation

When you are performing an installation in silent mode, keep in mind the following considerations:

 


Creating a Silent-Mode Installation Template File

When you install WebLogic Platform in silent mode, the installation program uses an XML file (silent.xml) to determine which installation options should be implemented. Therefore, before you can run the installation program in silent mode, you must first create a silent.xml file in which you specify the installation options that you want to have invoked.

Note: Incorrect entries in the silent.xml file can cause installation failures. To help you determine the cause of a failure, we recommend that you create a log file when you start the installation.

To create a template file for use in the silent-mode installation process, follow these steps:

  1. In a supported browser, display the sample template file for silent-mode installation. The sample template file is available at http://e-docs.bea.com/platform/docs81/install/silent.html#template.
  2. This template is also presented later in this chapter. See Sample Template File for Silent-Mode Installation. Note that not all entries in the template file are applicable to installing WebLogic SIP Server.

  3. Copy the contents of the template file and save it as a text file named silent.xml in the directory containing the WebLogic SIP Server installation program.
  4. Note: The XML definition (<?xml version="1.0" encoding="UTF-8"?>) must be at the very beginning of the template file. There cannot be any spaces or line breaks before the XML definition.
  5. In the silent.xml file, modify the values for the keywords shown in Table 5-1.
  6. Note: You must follow XML guidelines for characters when modifying values. That is, you cannot use characters reserved for use in XML, such as <, >, [, and ].

    Table 5-1 Silent-Mode Installation Template Values 
    For this data-value name . . .
    Enter the following value . . .
    BEAHOME
    The full pathname for the BEA Home directory of your choice. For details about the BEA Home directory, see Choosing a BEA Home Directory.
    USER_INSTALL_DIR
    The full pathname for the directory where you want to install the WebLogic SIP Server software. For details, see Choosing a Product Installation Directory.

 


Sample Template File for Silent-Mode Installation

<?xml version="1.0" encoding="UTF-8"?>

<!-- Silent installer option: -mode=silent -silent_xml=/home/me/silent.xml -->

<domain-template-descriptor>

<input-fields>
<data-value name="BEAHOME" value="C:\bea" />
<data-value name="USER_INSTALL_DIR" value="C:\bea\sipserver31" />
</input-fields>
</domain-template-descriptor>

 


Starting the Silent-Mode Installation Process on a Windows System

To start the silent-mode installation process on a Windows system, follow these steps:

  1. Log in to the Windows system.
  2. Open an MS-DOS command prompt window.
  3. Go to the directory that contains the installation file and launch the installation procedure by entering the following command:
  4. filename.exe -mode=silent -silent_xml=path_to_silent.xml

    Here filename.exe is the name of the WebLogic SIP Server installation file, and path_to_silent.xml is the full pathname of the silent.xml template file.

    Note: You can also include the -log=full_path_to_log_file option in the command line to create a verbose installation log. For example:
    Note: wlssXXX_win32.exe -mode=silent -silent_xml=D:\silent.xml -log=D:\logs\platform_install.log
    Note: In this example, XXX represents the version number of the software you are installing. For more information, see Generating a Verbose Installation Log.

 


Starting the Silent-Mode Installation Process on a UNIX System

The WebLogic Platform installation program requires a Java run-time environment (JRE) to run. A JRE is bundled in the Windows installation program, and in some UNIX installation programs (those with filenames ending in .bin). For other UNIX platforms, the WebLogic SIP Server installation program does not include the JRE. Filenames for these installation programs end in .jar. To run the .jar installation programs, you must have an appropriate version of a Java 2 SDK installed on your system, and include the bin directory of the Java 2 SDK at the beginning of your PATH system variable.

Note: It is important that you use an SDK because the installation process sets the JAVA_HOME and related variables to point to this directory. All scripts installed with WebLogic Platform use this SDK by default, including scripts to start sample applications, the Configuration Wizard, and other WebLogic development tools.

Starting Silent-Mode Installation for .bin Installation Files

Note: Incorrect entries in the silent.xml file can cause installation failures. To help you determine the cause of a failure, we recommend that you create a log file when you start the installation.

To start the silent-mode installation process using installation files with names ending in .bin, follow these steps:

  1. Log in to the target UNIX system.
  2. Go to the directory that contains the installation file.
  3. Launch the installation by entering the following command:
  4. chmod a+x filename
    ./filename.bin -mode=silent -silent_xml=/path_to_silent.xml

    Here filename.bin is the name of the WebLogic SIP Server installation file, and path_to_silent.xml is the full pathname of the silent.xml template file.

    Note: You can also include the -log=full_path_to_log_file option in the command line to create a verbose installation log. For example:
    Note: wlssXXX_linux.bin -mode=silent -silent_xml=/home/silent.xml -log=/home/logs/platform_install.log
    Note: For more information, see Generating a Verbose Installation Log.

Starting Silent-Mode Installation for .jar Installation Files

Note: Incorrect entries in the silent.xml file can cause installation failures. To help you determine the cause of a failure, we recommend that you create a log file when you start the installation.

To start the silent-mode installation process for installation files with names ending in .jar, follow these steps:

  1. Log in to the target UNIX system.
  2. Add the bin directory of the appropriate SDK to the beginning of the PATH variable definition on the target system. For example:
  3. PATH=JAVA_HOME/bin:$PATH
    export PATH

    Here JAVA_HOME is the full path of the SDK directory.

  4. Go to the directory that contains the installation file.
  5. Launch the installation by entering the following command:
  6. java -jar filename.jar -mode=silent
    -silent_xml=/
    path_to_silent.xml

    Here, filename.jar is the name of the WebLogic SIP Server installation file (for example wlssXXX_generic.jar, where XXX represents the version number of the software you are installing) and path_to_silent.xml is the full path to the silent.xml template file.

    Note: You can also include the -log=full_path_to_log_file option in the command line to create a verbose installation log. For example:
    Note: java -jar wlssXXX_generic.jar -mode=silent -silent_xml=/home/silent.xml -log=/home/logs/platform_install.log
    Note: For more information, see Generating a Verbose Installation Log.

 


Returning Exit Codes to the Console

When run in silent mode, the installation program generates exit codes that indicate the success or failure of the installation. These exit codes are shown in the following table.

Table 5-2 Installation Program Exit Codes
Code
Description
0
Installation completed successfully
-1
Installation failed due to a fatal error
-2
Installation failed due to an internal XML parsing error

If you are launching the silent-mode installation process from a script, you can choose to have these exit codes displayed to the console. Listing 5-1 provides a sample command file that invokes the WebLogic Platform installation in silent mode and echoes the exit codes to the console from which the script is executed.

Listing 5-1 Sample Command File Displaying Silent Mode Exit Codes
rem Execute the installer in silent mode
@echo off
wlss300_win32.exe -mode=silent -silent_xml=C:\downloads\silent.xml -log=C:\logs\220_silent.log

@rem Return an exit code to indicate success or failure of installation
set exit_code=%ERRORLEVEL%

@echo.
@echo Exitcode=%exit_code%
@echo.
@echo Exit Code Key
@echo ---------------
@echo 0=Installation completed successfully
@echo -1=Installation failed due to a fatal error
@echo -2=Installation failed due to an internal XML parsing error
@echo.

 


What’s Next?

You can start using the product immediately after installing it for the first time. For additional information, see Configuring a WebLogic SIP Server Domain.


  Back to Top       Previous  Next