Go to main content

Oracle® Solaris Cluster Data Service for Apache Tomcat Guide

Exit Print View

Updated: August 2018
 
 

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.


Caution

Caution  -  For a scalable configuration, the Apache Tomcat configuration must be the same on all the Apache Tomcat hosts.


  1. Assume the root role or assume a role that provides solaris.cluster.modify and solaris.cluster.admin authorizations.
  2. Modify the configuration files server.xml and the Apache Tomcat user configuration to the desired content.

    For more information, see http://tomcat.apache.org/index.html.

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

    For more information, see http://tomcat.apache.org/index.html.

  5. Test your application.

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

  6. 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 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 described in Understanding the HA for Apache Tomcat Parameter File can be get /start_page. With this procedure, you monitor Apache Tomcat and the application it is serving.