JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Cluster Data Service for Apache Tomcat Guide
search filter icon
search icon

Document Information

Preface

Installing and Configuring Sun Cluster HA for Apache Tomcat

Installing and Configuring Solaris Cluster HA for Apache Tomcat

Solaris Cluster HA for Apache Tomcat

Planning the Solaris Cluster HA for Apache Tomcat Installation and Configuration

Apache Tomcat and Solaris Containers

About Horizontal Scalability

Solaris Cluster HA for Apache Tomcat as a scalable configuration

Solaris Cluster HA for Apache Tomcat as a multiple master configuration

Configuration Restrictions

Restriction to deploy Oracle Solaris Cluster HA for Apache Tomcat in a scalable configuration

Restriction for the Load_balancing_policy

Restriction for Scalable Services and Solaris Containers

Restriction for the Apache Tomcat smf Service Name in a Failover Zone

Configuration Requirements

Location of the Tomcat Home Directory for Scalable or Multiple Masters Configurations

Load Balancing for Multiple Master Configurations

Location of the Tomcat Home Directory for Failover Configurations

Apache Tomcat Component Dependencies

Apache Tomcat Configuration and Registration Files

Installing and Configuring Apache Tomcat

How to Enable Apache Tomcat to run in a Global Zone Configuration

How to Install and Configure Apache Tomcat in the Global Zone

How to Enable Apache Tomcat to run in a Zone Configuration

How to Install and Configure Apache Tomcat in a Zone

How to Enable Apache Tomcat to run in Failover Zone Configuration

How to Install and Configure Apache Tomcat in a Failover Zone

Verifying the Installation and Configuration of Apache Tomcat

How to Verify the Installation and Configuration of Apache Tomcat

How to Deploy the Apache Tomcat Application

Installing the HA for Apache Tomcat Packages

How to Install the HA for Apache Tomcat Packages

Registering and Configuring Solaris Cluster HA for Apache Tomcat

How to Register and Configure Solaris Cluster HA for Apache Tomcat as a Failover Data Service

How to Register and Configure Solaris Cluster HA for Apache Tomcat as a Multiple Masters Data Service

How to Register and Configure Solaris Cluster HA for Apache Tomcat as a Scalable Data Service

Configuring Oracle Solaris Cluster HA for Apache Tomcat in Zones

Configuring Oracle Solaris Cluster HA for Apache Tomcat in a Failover Zone

How to Register Oracle Solaris Cluster HA for Apache Tomcat in a Failover Zone

How to Modify Parameters in the Oracle Solaris Cluster HA for Apache Tomcat Manifest

How to Remove a Oracle Solaris Cluster HA for Apache Tomcat Resource From a Failover Zone

Configuring Oracle Solaris Cluster HA for Apache Tomcat in a Zone

How to Register Oracle Solaris Cluster HA for Apache Tomcat in a Zone

Verifying the Solaris Cluster HA for Apache Tomcat Installation and Configuration

How to Verify the Solaris Cluster HA for Apache Tomcat Installation and Configuration

Understanding the Solaris Cluster Apache Tomcat HA Parameter File

Structure of the Apache Tomcat HA parameter file

Strategy to Chose the TestCmd and the ReturnString Variable

Understanding Solaris Cluster HA for Apache Tomcat Fault Monitor

Resource Properties

Probing Algorithm and Functionality

Debugging HA for Apache Tomcat

How to Activate Debugging for HA for Apache Tomcat

A.  Deployment Example: Installing Apache Tomcat in the Global Zone

B.  Deployment Example: Installing Apache Tomcat in a Failover Zone

C.  Deployment Example: Installing Apache Tomcat in a Non-Global Zone

Index

Verifying the Installation and Configuration of Apache Tomcat

This section contains the procedure you need to verify the installation and configuration of Apache Tomcat.

How to Verify the Installation and Configuration of Apache Tomcat

This procedure does not verify that your application is highly available because you have not installed your data service yet.

  1. Start the Apache Tomcat.

    Switch to the Tomcat user name in the target zone (in the following example, it is root) and change to the directory where the environment script is located. In the following example the Tomcat version is 4.1.24.


    Note - The output messages of the start and shutdown commands are highly version dependent.


     # . ./env.ksh
    # cd $CATALINA_HOME/bin
    # ./startup.sh
    Using CATALINA_BASE:   /tomcat/jakarta-tomcat-4.1.24
    Using CATALINA_HOME:   /tomcat/jakarta-tomcat-4.1.24
    Using CATALINA_TMPDIR: /tomcat/jakarta-tomcat-4.1.24/temp
    Using JAVA_HOME:       /usr/j2se
  2. Check the Installation

    Start a web browser and connect to the cluster node with http://nodename:8080. If you see the default Tomcat homepage everything is working correctly.

  3. Stop the Apache Tomcat.
     # ./shutdown.sh
    Using CATALINA_BASE:   /tomcat/jakarta-tomcat-4.1.24
    Using CATALINA_HOME:   /tomcat/jakarta-tomcat-4.1.24
    Using CATALINA_TMPDIR: /tomcat/jakarta-tomcat-4.1.24/temp
    Using JAVA_HOME:       /usr/j2se

How to Deploy the Apache Tomcat Application

If you configure Apache Tomcat as a failover resource, execute the following steps on one node. If you deploy Apache Tomcat as a scalable configuration, repeat the following steps on every node. If you deploy Apache Tomcat in a non global zone, regardless if it is a failover zone or a zone perform all the steps below in the target zone.


Caution

Caution - It is vital for a scalable configuration that the Apache Tomcat configuration does not differ on the Tomcat hosts.


  1. Become superuser or assume a role that provides solaris.cluster.modify and solaris.cluster.admin RBAC authorizations.
  2. (Optional) Enter the non global target zone.
    # zlogin zone-name
  3. Modify the configuration files server.xml and the Tomcat user configuration to the desired content.

    For further information refer to http://jakarta.apache.org/tomcat/index.html.

  4. Start Apache Tomcat as described in How to Verify the Installation and Configuration of Apache Tomcat.
  5. Deploy your Application.

    For further information refer to http://jakarta.apache.org/tomcat/index.html.

  6. Test your application with appropriate methods.

    For example, connect with a web browser to the Host with the appropriate port and select the start page of your application.

  7. Stop Apache Tomcat as described in How to Verify the Installation and Configuration of Apache Tomcat.

    The port on which Apache Tomcat is serving is required for the configuration of the Solaris Cluster Apache Tomcat resource.

    It is best practice to use the start page of the deployed application for the Fault Monitoring. In this case the TestCmd is described in Understanding the Solaris Cluster Apache Tomcat HA Parameter File can be get /start_page. With this procedure, you monitor Apache Tomcat and the application it is serving.

  8. (Optional) Leave the non global zone.