Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java System Application Server Standard and Enterprise Edition 7 2004Q2 Update 2 Installation Guide 

Chapter 1
Installing Standard and Enterprise Edition Software

This chapter describes how to install the Sun Java System Application Server Standard and Enterprise Editions. You can install interactively or use the silent mode to replicate an installation scenario on multiple machines.

The following topics are addressed:

For any late-breaking updates to these instructions, check the Sun Java System Application Server Release Notes.

For more information about configuring your application server after installation, refer to the Sun Java System Application Server Administration Guide.

The following location contains product downloads and other useful information: http://www.sun.com/software/products/appsrvr/home_appsrvr.html


About the Application Server Installation

The Sun Java System Application Server product is made up of a number of software components that work together to create the Sun Java System Application Server experience. There are a number of choices you can make for your installation:

This section addresses the following topics:

Requirements and Limitations

For detailed information on platform support and requirements, you can refer the Sun Java System Application Server Standard and Enterprise Edition Release Notes. This section lists certain additional requirements that should be met before installing Sun Java System Application Server. From the following sub-sections, select the platform for which you want to understand the requirements:

General Requirements

For Solaris

For HP-UX

Before installing Sun Java System Application Server on HP-UX, you may need to update your system’s kernel configuration parameters as explained in this section.

Modifying kernel parameters

Sometimes the command asadmin start-appserv may display the error "abnormal subprocess termination", if the values of nkthread and max_thread_proc are relatively low. So, it is recommended that these values are changed.

    To change a value

Ensure that you have root permissions to modify kernel parameters.

  1. Using the sam command, start the System Administration Manager (SAM) program.
  2. Double-click the Kernel Configuration icon.
  3. Double-click the Configurable Parameters icon.
  4. Double-click the parameter that you want to change and enter the new value in the Formula/Value field.
  5. After you have made the changes, click OK.
  6. Repeat these steps for all of the kernel configuration parameters that you want to change.
  7. The following table presents the kernel parameters and the recommended values for each parameter.

    Table 1-1  HP-UX Kernel Configuration Parameters (Recommended Values)

    Kernel Parameter

    Physical Memory

     

    64-128MB

    128-256MB

    256-512MB

    512MB+

    maxuprc

    256

    384

    512

    1500

    maxfiles

    256

    256

    256

    256

    nkthread

     

     

     

    4096

    nproc

    512

    768

    1024

    2048

    nflocks

    2048

    4096

    8192

    8192

    ninode

    512

    1024

    2048

    2048

    nfile

    (4 * ninode)

    (4 * ninode)

    (4 * ninode)

    (4 * ninode)

     

     

     

     

     

    msgseg

    8192

    16384

    32767 (1)

    32767 (1)

    msgmnb

    65535

    65535

    65535

    65535

    msgmax

    65535

    65535

    65535

    65535

    msgtql

    256

    512

    1024

    2048

    msgmap

    130

    258

    258

    2050

    msgmni

    128

    256

    256

    1024

    msgssz

    16

    16

    16

    16

     

     

     

     

     

    semmni

    128

    256

    512

    2048

    semmap

    130

    258

    514

    2050

    semmns

    256

    512

    1024

    4096

    semmnu

    256

    512

    1024

    1024

     

     

     

     

     

    shmmax

    67108864

    134217728 (2)

    268435456 (2)

    268435456 (2)

    shmmni

    300

    300

    300

    1000


    Note

    1.  The parameter msgseg must not be set to a value higher than 32767.

    2.  The parameter shmmax should be set to 134217728 or 90% of the physical memory (in bytes), whichever is higher. For example, if you have 196 MB of physical memory in your system, set shmmax to 184968806 (196*1024*1024*0.9).

    3.  To maintain the interdependency among kernel parameters, change parameters in the same sequence in which they appear in the preceding table.

    4.  For related information, also refer the section HP-UX configuration for Java support at http://www.hp.com/products1/unix/java/infolibrary/prog_guide/configuration.html


  8. When you are finished setting all of the kernel configuration parameters, from the Action menu bar, select Action and then select Process New Kernel.
  9. The HP-UX operating system automatically restarts after you change the values for the kernel configuration parameters.

Installing Patches

After you have modified the kernel parameters, make sure that the bundled patch required for the HP-UX operating system is installed.

To see which patches are currently installed on your system, enter the following command:

swlist -l fileset -a patch_state *.*,c=patch | grep -v superseded

Apart from the operating system patch, you may also need to install the patches required for Java. These patches are available at the following URL: http://www.hp.com/products1/unix/java/patches/index.html

For Microsoft Windows

Distributions of the Product

The Sun Java System Application Server offers two types of distributions:

You can install these distributions of the product from the product CD or as a download from the web site. The various downloads available for the Sun Java System Application Server product can be found at http://wwws.sun.com/software/download/app_servers.html


Note

Multiple file-based Application Server installations can reside on a single machine.


The following table identifies the distribution types for each platform and the Application Server Edition available for each distribution.

Table 1-2  Product Distribution Definition

Distribution Type

Platform

Application Server Edition

File-based

Solaris SPARC,
Solaris x86
Linux
Microsoft Windows

Standard and Enterprise
Standard and Enterprise
Standard and Enterprise
Standard and Enterprise

Package-based

Solaris SPARC,
Solaris x86

Standard and Enterprise
Standard and Enterprise

RPM-based

Linux

Standard and Enterprise

Refer to the Sun Java System Application Server 7 Release Notes to identify which platform versions are supported.

Packaging Models and Directory Structure

There are different installation programs for package-based and file-based distributions. Depending on the distribution of the product installed on your system, your Sun Java System Application Server software may be installed under a single root directory path or spread across several root directory paths.

This section addresses the following topics:

Package-Based Installation on Solaris SPARC/x86 and RPM-based on Linux

On Solaris SPARC/x86 package-based, and on Linux RPM-based distributions, the components are installed as packages. By default, the installation locations are spread across three directory roots:

File-based Installation on Microsoft Windows and Solaris SPARC/x86

On Microsoft Windows (available in file-based distribution only), and on Solaris SPARC/x86 file-based distributions, the components are installed under a single directory path. The default directories are:

In these cases, the /config and /domains directories are positioned under the installation directory root.

Installation Components

In general, you are installing the basic components that provide the functionality of Sun Java System Application Server. You can choose not to install some of the components. Later, if you want to add a component that you initially chose not to install, you can do an incremental installation of that component, provided dependencies are met.


Note

A partial installation can be followed by any number of incremental installations. For silent mode, you can do a partial initial installation, but any subsequent installations must be done using an interactive method.


The installation program enforces component dependencies as specified for each component. Once component dependencies are satisfied, component life cycles are independent. A particular component can be installed or uninstalled dynamically through incremental installation without corrupting other components. However, incremental uninstallation is not supported.

The following components are included with Sun Java System Application Server Standard and Enterprise Editions:

The following additional components are included with the Sun Java System Application Server Enterprise Edition product:

Installation Methods

There are three methods of installation:

The setup command allows you to specify the method of installation, and allows you to create a configuration file for silent installation.

The setup command syntax: setup [-console [-savestate]] [-savestate] [-silent config_file] [-h || -help]

Table 1-3 describes the setup command options.

Table 1-3  Options for the setup Command 

Option

Description

-console

Runs the installation using the command-line method.

-silent config_file

Runs the installation in silent mode. Installation parameters are read from an existing installation configuration file. This option is mutually exclusive with the savestate option.

The installation configuration file path must be explicitly provided; there is no default file path. Refer to Installing in Silent Mode for further specifics on silent mode installation and the installation configuration file.

-savestate

Runs the installation using either the graphical or command-line method and creates an installation configuration file based on this installation. This option is mutually exclusive with the silent option. If you do not specify this option, no installation configuration file will be created.

The file will be called statefile and located in install_dir.

-h || -help

Displays the available command-line arguments for the setup command.

Table 1-4 identifies the command for each installation method.

Table 1-4  Commands for all the Installation Methods

Installation Method

Installation Command

Graphical interface (default)

./setup

Command-line interface

./setup -console

Graphical interface for creating configuration file for silent mode installation 1

./setup -savestate

Command-line interface for creating configuration file for silent mode installation 1

./setup -console -savestate

Silent mode based on an existing installation configuration file

./setup -silent config_file

Display available Command-line arguments for the setup command

./setup -help

1 The file called statefile is created in install_dir.


Installing Application Server Software

This section provides instructions for installing the Sun Java System Application Server 7 Standard and Enterprise Edition distributions.

The following installation instructions are provided:

Downloading from the Web Site

This section provides for downloading the Sun Java System Application Server installation files from the web site. If you downloaded the product from the web site, a 60-day license is installed.

Downloading for Solaris SPARC and x86 or Linux

  1. Select the download from the following Sun Java System Application Server download site and save it in a temporary directory on your Solaris SPARC and x86 or Linux machine.
  2. http://wwws.sun.com/software/download/app_servers.html

  3. Navigate to the directory where you downloaded the file. For example:
  4. cd /temp_dir/as7download/

  5. Unzip the .gz file using the gunzip command in this format:
  6. gunzip filename.tar.gz

  7. Untar the unzipped file using the tar -xvf command in this format:
  8. tar -xvf filename.tar

    This process may take a little time. When the files are unpacked, you will see the sun-appserver7 directory, which contains the setup file and the package directory.

To determine whether you have download the file-based, RPM-based (Linux), or package-based distribution, see Packaging Models and Directory Structure.

Proceed to the instructions for installing the selected Application Server edition for your platform.

Downloading for Microsoft Windows

  1. Select the download from the following Sun Java System Application Server download site and save it in a temporary directory on your Microsoft Windows machine.
  2. http://wwws.sun.com/software/download/app_servers.html

    A progress indicator bar tells you when the download has completed.

  3. Navigate to the directory where you downloaded the installation zip file.
  4. Unzip the installation zip file by opening the file and extracting its contents to your chosen folder. When the extraction is complete, you will see the sun-appserver7 directory, which contains the setup.exe file, the package directory and other associated files.

Proceed to the instructions for installing the Application Server Standard Edition on Microsoft Windows.

Installing Standard Edition

This section provides instructions for installing the Application Server Standard Edition on the various platforms for the various distributions. The following installations are addressed:

Installing Standard Edition on Solaris SPARC and x86

The following instructions apply to file-based and package-based distribution unless specifically identified. You must have root access to install the package-based distribution. Root access is not required for file-based distribution.

  1. Run the installation program.
    1. To run the installation program in the graphical mode, at the command prompt type setup.
    2. To run the installation program in the command-line mode, at the command prompt type setup -console.
  2. Follow the installation wizard screens to accept the license agreement, and specify the path to the Application Server installation directory; or accept the default installation directory.
  3. The default installation directory is dependent on the distribution you are installing; see Packaging Models and Directory Structure.

  4. Select the components you wish to install.
  5. If a component is disabled, it means that the installation program has detected it as already installed on your system.

  6. Choose to install the Java 2 SDK, or use a preinstalled Java 2 SDK.
    • If the correct version of the Java 2 SDK is installed, it is reused or you can enter the path to another correct version.
    • If there is no Java 2 SDK installed, you can choose to let the installation program install the Java 2 SDK automatically.
    • For package-based distributions, if an incorrect version of the Java 2 SDK is found in the default path, you are prompted to upgrade your current version.
    • For file-based distributions, if you choose to install the Java 2 SDK, a private copy is installed in install_dir.
    • The default Java 2 SDK installation path is:

    • For Solaris SPARC and x86 package-based distributions: /usr/j2se
    • For Solaris SPARC and x86 file-based distributions: install_dir/jdk
  7. For package-based distribution, you are prompted to identify your server configuration directory.
  8. The default server configuration directory is: /etc/opt/SUNWappserver7

  9. For package-based distribution, you are prompted to identify your server domains directory.
  10. The default server domain directory is: /var/opt/SUNWappserver7

  11. In the Server Configuration Information page (or at the command line), enter the following:
    • Admin User—Name of the user who administers the server
    • Admin User’s Password—Password to access the Admin Server (8 character minimum)
    • Admin Server Port—Port number to access the Admin Server
    • HTTP Server Port—Port number to access the default server instance


Note

The installation program automatically detects ports in use and suggests unused ports for the default settings. The default ports for package-based distribution are 80 for the HTTP Server, and 4848 for the Admin Server.

If you are installing as non-root user, the default ports for file-based installation are 1024 for the HTTP Server, and 4848 for the Admin Server.


The installation program verifies the available disk space on your machine. If you do not have enough disk space, an error message is displayed. Consult the Sun Java System Application Server 7 Release Notes to identify the minimum disk space required.

The Installation Summary page is displayed indicating the installation status. If the installation is unsuccessful, consult the log files located at:

If you downloaded the product from the web site, a 60-day license is installed.

If you installed the product from a CD, a non-expiring Application Server Standard Edition production license is installed.

Installing Standard Edition on Linux

The following instructions apply to RPM-based and package-based distribution unless specifically identified. You must have root privileges to install the package-based distribution. However, root privileges are not required for RPM-based distribution.

  1. Run the installation program.
    1. To run the installation program in the graphical mode, at the command prompt type setup.
    2. To run the installation program in the command-line mode, at the command prompt type setup -console.
  2. Follow the installation wizard screens to accept the license agreement, and specify the path to the Application Server installation directory; or accept the default installation directory.
  3. The default installation directory is dependent on the distribution you are installing see Packaging Models and Directory Structure.

  4. Select the components you wish to install.
  5. If a component is disabled, the installation program has detected it as already installed on your system.

  6. Choose to install the Java 2 SDK, or use a preinstalled Java 2 SDK.
    • If the correct version of the Java 2 SDK is installed, it is reused or you can enter the path to another correct version.
    • If there is no Java 2 SDK installed, you can choose to let the installation program install the Java 2 SDK package automatically.
    • For RPM-based, if an incorrect version of the Java 2 SDK is found in the default path, you are prompted to upgrade your current version.
    • For file-based, if you choose to install the Java 2 SDK, a private copy is installed in install_dir.
    • The default Java 2 SDK installation path:

    • For Linux RPM-based distributions: /usr/java
    • For Linux file-based distributions: install_dir/jdk
  7. For RPM-based distribution, you are prompted to identify your server configuration directory.
  8. The default server configuration directory is: /etc/opt/SUNWappserver7

  9. For RPM-based distribution, you are prompted to identify your server domains directory.
  10. The default server domain directory is: /var/opt/SUNWappserver7

  11. In the Server Configuration Information page (or at the command line), enter the following:
    • Admin User—Name of the user who administers the server
    • Admin User’s Password—Password to access the Admin Server (8 character minimum)
    • Admin Server Port—Port number to access the Admin Server
    • HTTP Server Port—Port number to access the default server instance


Note

The installation program automatically detects ports in use and suggests unused ports for the default settings. The default ports for package-based distribution, or file-based distribution as root user are 80 for the HTTP Server, and 4848 for the Admin Server.

If you are installing file-based distribution as non-root user, the default ports are 1024 for the HTTP Server, and 4848 for the Admin Server.


The installation program verifies the available disk space on your machine. If you do not have enough disk space, an error message is displayed. Consult the Sun Java System Application Server 7 Release Notes to identify the minimum disk space required.

The Installation Summary page is displayed indicating the installation status. If the installation is unsuccessful, consult the log files located at:

If you downloaded the product from the web site, a 60-day license is installed.

If you installed the product from a CD, a non-expiring Application Server Standard Edition production license is installed.

Installing Standard Edition on Microsoft Windows

You must have administrator privileges to install the Application Server software.

  1. Navigate to the directory where you unpacked the installation files. You will see the setup.exe file.
  2. Run the installation program.
    1. To run the installation program that uses the graphical interface, at the command prompt type setup.
    2. To run the installation program that uses the command-line interface, at the command prompt type setup -console.
  3. Follow the installation wizard screens to accept the license agreement, and specify the path to the Application Server installation directory; or accept the default installation directory.
  4. The default installation directory is: c:\Sun\AppServer7

  5. Select the components you wish to install.
  6. If a component is disabled, the installation program has detected it as already installed on your system.

  7. Choose to install the Java 2 SDK, or use a preinstalled Java 2 SDK.
    • If the correct version of the Java 2 SDK is installed, it is reused or you can enter the path to another correct version.
    • If there is no Java 2 SDK installed, you can choose to let the installation program install the Java 2 SDK package automatically.
    • If you choose to install the Java 2 SDK, a private installation is installed at: c:\installdir\jdk
  8. In the Server Configuration Information page (or at the command line), enter the following:
    • Admin User—Name of the user who administers the server
    • Admin User’s Password—Password to access the Admin Server (8 character minimum)
    • Admin Server Port—Port number to access the Admin Server
    • HTTP Server Port—Port number to access the default server instance


Note

The installation program automatically detects ports in use and suggests unused ports for the default settings. The default ports are 80 for the HTTP Server, and 4848 for the Admin Server.


The installation program verifies the available disk space on your machine. If you do not have enough disk space, an error message is displayed. Consult the Sun Java System Application Server 7 Release Notes to identify the minimum disk space required.

The Installation Summary page is displayed indicating the installation status. If the installation is unsuccessful, consult the installation log file located at installdir\install.log.

If you downloaded the product from the web site, a 60-day license is installed.

If you installed the product from a CD, a non-expiring Application Server Standard Edition production license is installed.

Installing Enterprise Edition

This section provides instructions for installing the Application Server Enterprise Edition on the various platforms for the various distributions. The following installation is addressed:

Installing Enterprise Edition on Solaris SPARC, x86 and Linux

Unless specifically identified, the following instructions apply to:

You must have root access to install the package-based and RPM-based distributions. Root user is not needed for file-based distribution.

  1. After you have planned the topology, run the installation program.
    1. To run the installation program in the graphical mode, at the command prompt type setup.
    2. To run the installation program in the command-line mode, at the command prompt type setup -console
    3. .


      Note

      If you are installing the load balancer plug-in, your web server must already be installed. Refer to Installing the Load Balancer Plug-in Component.


  2. Follow the installation wizard screens to accept the license agreement, and specify the path to the Application Server installation directory; or accept the default installation directory.
  3. The default installation directory is dependent on the distribution you are installing see Packaging Models and Directory Structure.

  4. For package-based distribution, if you are installing only the HADB Server component, select /opt as the installation directory to install the HADB packages into the default location /opt/SUNWhadb.
  5. For package-based distribution, select identical installation directories on all systems hosting HADB Server nodes.
  6. When installing the Sun Java System Application Server together with HADB, if you do not want to use the default installation folder, you can create alternate directories, and then create soft links (ln -s) to these directories from the /var/opt and /etc/opt directories.

  7. Select the components you wish to install.
  8. If a component is disabled, it means that the installation program has detected it as already installed on your system.

    If you do not already have your web server installed on the machine where you are installing the load balancer plug-in, you cannot continue to install the load-balancer plug-in.

  9. Choose to install the Java 2 SDK, or use a preinstalled Java 2 SDK.
    • If the correct version of the Java 2 SDK is installed, it is reused or you can enter the path to another correct version.
    • If there is no Java 2 SDK installed, you can choose to let the installation program install the Java 2 SDK package automatically.
    • For package-based or RPM-based distributions, if an incorrect version of the Java 2 SDK is found in the default path, you are prompted to upgrade your current version.
    • For file-based distribution, if you choose to install the Java 2 SDK, a private copy is installed in install_dir.
    • The default Java 2 SDK installation path is:

    • For Solaris SPARC and x86 package-based distribution: /usr/j2se
    • For Linux RPM-based distribution: /usr/java
    • For Solaris SPARC and x86 file-based distribution: install_dir/jdk

    • Note

      The Sun Java System Application Server Enterprise Edition software is certified to work with Java 2 SDK from Sun Microsystems. Third-party Java 2 SDK development kits, even with appropriate version number, are not supported.


  10. For package-based and RPM-based distributions, you are prompted to identify your server configuration directory.
  11. The default server configuration directory is: /etc/opt/SUNWappserver7

  12. For package-based and RPM-based distributions, you are prompted to identify your server domains directory.
  13. The default server domain directory is: /var/opt/SUNWappserver7

  14. If you selected the load balancer plug-in component, identify your web server.
  15. In the Server Configuration Information page (or at the command line), enter the following:
    • Admin User—Name of the user who administers the server
    • Admin User’s Password—Password to access the Admin Server (8 character minimum)
    • Admin Server Port—Port number to access the Admin Server
    • HTTP Server Port—Port number to access the default server instance


Note

The installation program automatically detects ports in use and suggests unused ports for the default settings. For package-based distribution and file-based distribution as non-root user, the default ports are 80 for the HTTP Server, and 4848 for the Admin Server.

If you are installing file-based distribution as non-root user, the default ports are 1024 for the HTTP Server, and 4848 for the Admin Server.


The installation program verifies the available disk space on your machine. If you do not have enough disk space, an error message is displayed. Consult the Sun Java System Application Server 7 Release Notes to identify the minimum disk space required.

The Installation Summary page is displayed indicating the installation status. If the installation is unsuccessful, consult the log files located at:

If you downloaded the product from the web site, a 60-day license is installed.

If you installed the product from a CD, a non-expiring Application Server Standard Edition production license is installed.

  1. Start the server.
  2. If you selected the HADB components, verify that you have successfully installed the HADB on each host by typing: hadbm --help
  3. A list of all commands available using the hadbm utility is displayed. The hadbm is located at install_dir/SUNWhadb/4/bin.

You are now ready to configure your system for high availability. Proceed to Preparing for HADB Setup.

  1. After installation, if you selected the Load-balancer plug-in, edit the supplied loadbalancer.xml.example file to include references to actual application server instances. This file is located at: webserver_instance_dir/config/loadbalancer.xml.example
  2. For more information on configuring HTTP load balancing and Failover, consult the Sun Java System Application Server Administration Guide.

  3. Save the loadbalancer.xml.example file as loadbalancer.xml in the same directory.

Installing Enterprise Edition on Microsoft Windows

You must have administrator privileges to install the Application Server software.

  1. Navigate to the directory where you unpacked the installation files.
  2. Run the installation program. by selecting setup.exe.
  3. Follow the installation wizard screens to accept the license agreement, and specify the path to the Application Server installation directory; or accept the default installation directory.
  4. The default installation directory is: c:\Sun\AppServer7

  5. Select the components you wish to install.
  6. If a component is disabled, the installation program has detected it as already installed on your system.


    Note

    If you are installing the load balancer plug-in, your web server must already be installed. Refer to Installing the Load Balancer Plug-in Component.


  7. Choose to install the bundled Java 2 SDK, or use a pre-installed Java 2 SDK.
    • If the correct version of the Java 2 SDK is installed, you can re-use the existing installation. If the versions do not match, enter the path to an installation with the correct version.
    • If there is no Java 2 SDK installed, choose to install the bundled Java 2 SDK. The bundled Java 2 SDK is installed at: c:\installdir\jdk.
  8. In the Server Configuration Information page (or at the command line), enter the following information:
    • Admin User—Name of the user who administers the server
    • Admin User’s Password—Password to access the Admin Server (8 character minimum)
    • Admin Server Port—Port number to access the Admin Server
    • HTTP Server Port—Port number to access the default server instance


Note

The installation program automatically detects ports in use and suggests unused ports for the default settings. The default ports are 80 for the HTTP Server, and 4848 for the Admin Server.


The installation program verifies the available disk space on your machine. If you do not have enough disk space, an error message is displayed. Consult the Sun Java System Application Server 7 Release Notes to identify the minimum disk space required.

The Installation Summary page is displayed indicating the installation status. If the installation is unsuccessful, consult the installation log file, Sun_Java_system_Application_Server_install.log, located in the Windows temp directory.

If you downloaded the product from the web site, a 60-day license is installed.

If you installed the product from a CD, a non-expiring Application Server Enterprise Edition production license is installed.


Installing the Load Balancer Plug-in Component

Follow the steps to separately install the load balancer plug-in component:

  1. Check the system hosting the web server and load balancer plug-in to see if a previously-installed load balancer plug-in or reverse proxy plug-in is present. If it is, remove it using the installation program.
  2. Verify that the supported web server is installed on the machines where you are going to install the load balancer plug-in.

  3. Note

    You must install the web server and the load balancer plug-in using the same access permissions.


    Consult the Sun Java System Application Server 7 Release Notes to identify the currently supported Web Server versions.

  4. Identify your web server and the web server instance path.
  5. Follow the instructions in the setup program to complete the installation.

  6. Note

    for Apache web server, the load balancer plug-in installation program extracts the necessary files to the libexec folder on Apache 1.3, or the modules folder on Apache 2.0.


    • The Installation Summary page is displayed indicating the installation status. If the installation is unsuccessful, consult the installation log file located at /var/tmp/Sun_Java_System_application_Server_install.log. In addition, low-level installation log files are created at: /var/sadm/install/logs/Sun_Java_System_Application_Server_install.timestamp.

      On Windows, the installation log file is available in install_dir\install.log.

    • On Windows, the installation program adds the following properties in sun-passthrough.properties file, which is installed in C:\Inetpub\wwwroot\sun-passthrough\.

      lb-config-file: The path to loadbalancer.xml. The default location is IIS_www_root\sun-passthrough\loadbalancer.xml.

      log-file: The path to the loadbalancer log file. The default location is IIS_www_root\sun-passthrough.log

      log-level: The logging level for the loadbalancer plugin. The default is INFO.

  7. After installation, edit loadbalancer.xml.example file to include references to actual application server instances. This file is located at: webserver_instance_dir/config/loadbalancer.xml.example
  8. On Windows: ISS_www_root\sun-passthrough\oadbalancer.xml.example.

  9. Save the loadbalancer.xml.example file as loadbalancer.xml in the same directory.

  10. Note

    After installing load balancer plug-in on Windows for IIS or Apache, append the path of the Application Server to the Path environment variable.

    • Go to Start->Settings->Control Panel->System->Advanced->Environment Variables->System Variables->Path, and add: appserver_install_dir\bin
    • You must restart the machine.

    For more information on configuring HTTP load balancing and Failover, consult the Sun Java System Application Server Administration Guide.


Installing in Silent Mode

Silent mode installation runs without any user input checking a configuration file to obtain the installation information. The following topics are discussed:

Creating the Installation Configuration File

The installation configuration file is created when you use the savestate option with the setup command to start a interactive installation. During the interactive installation, your input is collected and stored in the configuration file you specified. This forms the template for silent installation, which you can use later to install the product on one or more machines. If needed, you can modify the installation configuration file.

The following topics are addressed:

Syntax for Creating the Installation Configuration File

The syntax for creating an installation configuration file is as follows:

For graphical method: ./setup -savestate

For command-line method: ./setup -console -savestate

Refer to Installation Methods for more detailed information.

Example Installation Configuration File

An installation configuration file looks similar to the following:

# Wizard Statefile created: Mon Jan 17 16:25:26 PST 2004

# Wizard path: /tmp/sun-appserver7/./appserv.class

# Install Wizard Statefile for Sun Java System Application Server 7.1 Enterprise Edition

#

[STATE_BEGIN Sun Java System Application Server 108a4222b3a6a8ed98832d45238c7e8bb16c67a5]

defaultInstallDirectory = /opt/SUNWappserver7
currentInstallDirectory = /opt/SUNWappserver7

SELECTED_COMPONENTS = Java 2 SDK, Standard Edition 1.4.21_02#Application Server#Sun ONE Message Queue 3.5#Sample Applications#Load Balancing Plugin#Uninstall#Startup

USE_BUNDLED_JDK = FALSE
JDK_LOCATION = /usr/j2se
JDK_INSTALLTYPE = PREINSTALLED
INSTALL_DEFAULT_CONFIG_DIR = /etc/opt/SUNWappserver7
INSTALL_CONFIG_DIR = /etc/opt/SUNWappserver7
INSTALL_DEFAULT_VAR_DIR = /var/opt/SUNWappserver7
INSTALL_VAR_DIR = /var/opt/SUNWappserver7
DOMAINS_DIR = /var/opt/SUNWappserver7/domains
WEBSERVER_INSTALL_DEFAULT_DIR = /usr/iplanet/servers
WEBSERVER_INSTALL_DIR = /opt/iplanet/servers/https-tesla.red.iplanet.com
INST_ASADMIN_USERNAME = admin
INST_ASADMIN_PASSWORD = adminadmin
INST_ASADMIN_PORT = 4848
INST_ASWEB_PORT = 81
INSTALL_STATUS = SUCCESS
[STATE_DONE Sun Java System Application Server 108a4222b3a6a8ed98832d45238c7e8bb16c67a5]

Modifying the Installation Configuration File

You can modify the installation configuration file by editing the variables and values described in Table 1-5.

Table 1-5  Installation Configuration File Variables 

Variable Name

Valid values (if applicable)

Content

Comments

defaultInstallDirectory

 

Default installation directory path

Value not actively used by installation program.

currentInstallDirectory

 

Selected installation directory path

 

SELECTED_COMPONENTS

 

List of product components selected for installation

Pound (#') character is used as list delimiter.

USE_BUNDLED_JDK

TRUE
FALSE

Whether to install JDK bundled with the product

 

JDK_LOCATION

 

JDK path

Preinstalled JDK path if USE_BUNDLED_J2SE is set to false; otherwise installation location for bundled J2SE.

JDK_INSTALLTYPE

PREINSTALLED
CANNOTUPGRADE
UPGRADABLE
CLEANINSTALL

How to handle existing JDK installation

Only PREINSTALLED and CLEANINSTALL are valid values for silent installation configuration file.

INSTALL_DEFAULT_CONFIG_DIR

 

Default configuration files directory path

Value not actively used by installation program.

INSTALL_CONFIG_DIR

 

Selected configuration file directory path

 

INSTALL_DEFAULT_VAR_DIR

 

Default domains configuration files directory path

Value not actively used by installation program.

INSTALL_VAR_DIR

 

Selected domains configuration file directory path

 

DOMAINS_DIR

 

Selected domains configuration file directory path, plus domains subdirectory

AS_INSTALL_VAR_DIR and DOMAINS_DIR are generally redundant. However, both entries are needed by legacy installation program code.

WEBSERVER_INSTALL_DEFAULT_DIR

 

Default web server instance directory path

Enterprise Edition ONLY
Value not actively used by installation program.

WEBSERVER_INSTALL_DIR

 

Selected web server instance directory path

Enterprise Edition ONLY

INST_ASADMIN_USERNAME

 

Administrator username for initial domain

 

INST_ASADMIN_PASSWORD

 

Administrator password for initial domain

 

INST_ASADMIN_PORT

0 - 65535

Administration server port number for initial domain

 

INST_ASWEB_PORT

0 - 65535

Server port number for initial server instance

 

INSTALL_STATUS

SUCCESS

FAILURE

Installation outcome

Mandated by installation program implementation. Value not actively used by installation program.


Note

You cannot re-use the configuration file created for one distribution on other distributions or editions of the Application Server.

To view the results of the silent installation, refer to the log file.


Installing in Silent Mode

To install the Sun Java System Application Server software in silent mode:

  1. Review configuration file and verify that it contains what you want to use for your silent installation.
  2. Copy your installation configuration file to each machine where you plan to install the Sun Java System Application Server software.
  3. Copy the Sun Java System Application Server installation files to each machine where you plan to install the Application Server software.
  4. Navigate to the directory where you copied the installation files and your installation configuration file.
  5. As superuser, start silent installation at the command line using the following command format: ./setup -silent config_file
  6. The installation program reads the specified config_file, checks for adequate disk space, then installs the product based on the data in config_file.

    When the prompt is returned, the silent installation is complete and the installation components are installed on your systems.

  7. You can start the Application Server software by using the instructions in the Sun Java System Application Server Administration Guide.
  8. When the Admin Console is started, the initial page of the Application Server graphical interface is displayed.

You are now ready to configure your system for high availability. Proceed to Preparing for HADB Setup to begin this process.


Troubleshooting Installation

This section explains how you can work around issues that you may encounter when installing Application Server.

All Platforms

Application Server does not start if the installation directory contains non-alphanumeric characters.

Application Server startup fails if the installation directory contains characters such as #, spaces, or any other non-alphanumeric characters. In this case, the server log files are not created. The Application Server installation directory can contain only the following characters: alphanumerics, - (dash) or _ (underscore). This also applies to the existing Java 2 SDK directory specified during installation.

Solution

During installation, when you specify the installation directory, ensure that its name contains only alphanumeric, dash, or underscore characters.

Silent installation program does not check user permissions.

Although the interactive installation programs (GUI and command-line) check for appropriate user permissions (UNIX root user), this check is not done during silent installation. As a result, installation may fail because the user will not have sufficient permissions to install packages.

Solution

Make sure that silent installation is being run as the appropriate user.

Silent installation fails if performed as a non-root user.

When the statefile from an installation of Application Server, performed as non-root, is used for silent installation, the installation will fail with the message:

No available components have been selected for installation. Component list is either empty, or contains already installed components.

Solution
  1. Open the statefile for editing.
  2. Comment out the line starting with "INSTALLED_AS_COMPONENTS."
  3. Perform silent installation again using the modified statefile.

UNIX

On Solaris, when installing the Application Server in non-default locations, the package-based installation program does not check disk space in the correct locations.

When installing the Application Server on Solaris (using the package-based installation program) in a non-default location, the installation program does not check for disk space in the specified target directory. Instead, it checks for disk space only in the default directory location (/opt).

Solution

Before installation, verify that you have adequate disk space (85 MB) in /opt directory; even if you do not plan to install in /opt. In addition, make sure you have adequate disk space (85 MB) in the target directory.

On Solaris, an error message is displayed while running installation from a CD.

When a volume is inserted into the CD-ROM drive, Solaris volume management assigns it the next symbolic name. For example, if two CD-ROMs match the default regular expression, they are named cdrom0 and cdrom. Any volume that matches the added regular expression would be named starting with cdrom2. This is documented on vold.conf man page. Every time you install the Application Server from the CD, the CD-ROM mount point appends a number after the label name. The first time the CD is mounted everything goes well. On subsequent mounts, the following error message occurs when the installation program starts:

IOException:java.io.FileNotFoundException: /cdrom/appserver7 (No such file or directory) while loading default flavormap.properties file URL:file:/cdrom/appserver7#4/AppServer7/pkg/jre/lib/flavormap.properties

Solution

The functionality of the installation program is not affected in any way. The following workaround exists for this issue:

  1. Become the superuser using the command su and the superuser/root password at the command prompt, or log in as root. The command prompt changes to the pound sign (#).
  2. If the /cdrom directory does not already exist, enter the following command to create it:
  3. # mkdir /cdrom

  4. Mount the CD-ROM drive.

  5. Note

    The vold process manages the CD-ROM device and performs the mounting. The CD-ROM might automatically mount onto the /cdrom/cdrom0 directory.


    If you are running File Manager, a separate File Manager window displays the contents of the CD-ROM.

    If the directory /cdrom/cdrom0 is empty because the CD-ROM was not mounted, or if File Manager does not open a window displaying the contents of the CD-ROM, verify that the vold daemon is running by entering the following command:

    # ps -e | grep vold | grep -v grep

    If vold is running, the system displays the process identification number of vold. If the system does not display anything, kill the daemon by typing the following:

    # ps -ef | grep vold | grep -v grep

    Stop the vold process by entering:

    # kill -15 process_ID_number

  6. Mount the CDROM manually:
  7. # mount -F hsfs -r ro /dev/dsk/cxtyd0sz /cdrom/cdrom0

    where, x is the CD-ROM drive controller number, y is the CD-ROM drive SCSI ID number, and z is the slice of the partition on which the CD-ROM is located.

    You have now mounted the CD-ROM drive. Refer to Solaris documentation for procedures on installation.

On Solaris, an incremental installation of the Application Server component on the system, with previously installed Administration Client component, may result in an unusable installation.

This issue affects Solaris package-based installation. If you install the Application Server on a system where a standalone Administration Client component has already been installed, and select a different installation directory from the one originally used for Administration Client installation, the resulting Application Server installation will be unusable even though the installation outcome is reported as successful. This is because the Administration Client Solaris packages will be detected as already installed on the system, and will not be installed as part of the Application Server installation. As a result, files critical for product functionality will be missing.

Solution

Uninstall the standalone Administration Client before attempting to install the Application Server on the same Solaris system.

Alternatively, an incremental installation can be attempted; the same installation directory that was used for the Administration Client installation should be used for the subsequent Application Server installation.

Linux

The command asadmin create-domain hangs and fails to create a domain on Red Hat Enterprise Linux AS 3.0.

On Red Hat Enterprise Linux AS 3.0, you must install compat-libstdc++ (standard C++ libraries for backward compatibility) before installing Sun Java System Application Server 7. These libraries are included on the Red Hat Enterprise Linux AS 3.0 product CD set. If this is not done, the asadmin create-domain command hangs and fails to create a domain on Red Hat Enterprise Linux AS 3.0.

Two Message Queue packages are installed on Linux if you are doing a full installation and if a qualified Message Queue is already installed.

Due to a bug in the Linux RPM utility in 4.2.1.xx, the installed Sun ONE Message Queue (identified as imq) RPM is not recognized. Because of this problem, the Application Server installation program will install a second version of the Sun ONE Message Queue RPM. To work around this, either install the 4.2.0.69 version of RPM on your system or uninstall Message Queue before installing the application server.

Typically 4.2.1.xx version of RPM is present in Red Hat Enterprise Linux Advanced Server 3.0 unless the RPM package was upgraded on prior versions of the Linux system.

Microsoft Windows

On Microsoft Windows, unwanted statements are present in installation log file.

The Sun Java System Application Server 7 Standard Edition installation program for Microsoft Windows platforms generates the detailed installation log under the directory defined by the environment variable%TEMP%. The log filename is Sun_Java_System_Application_Server_install.btimestamp. The log file will have statements ‘Continuing Multi CD installation’ embedded in them along with useful information about the installation process.

Solution

These messages in the log file can be safely ignored.

On Microsoft Windows, the services created have the start type set by default to ‘Automatic’ after an upgrade.
Solution
  1. Open the Windows services.
  2. Change the start type of the servers to ‘Manual.’



Previous      Contents      Index      Next     


Copyright 2005 Sun Microsystems, Inc. All rights reserved.