Sun Cluster Data Service for Apache Tomcat Guide for Solaris OS

ProcedureExample: Modifying the Apache Tomcat Configuration File

In this task you will create the configuration file to prepare the Apache Tomcat database. It is assumed, that you are still logged in to this zone, otherwise log into this zone.

  1. Switch to the tomcat user.


    zone# su - tomcat
    
  2. Copy the Apache Tomcat configuration file from the agent directory to its deployment location.


    zone# cp /opt/SUNWsctomcat/bin/pfile /global/mnt3
    phys-schost-1# chown tomcat:tomcat /global/mnt3/pfile
    
  3. Add this cluster's information to the parameter file /global/mnt3/pfile.

    The following listing shows the relevant file entries and the values to assign to each entry.


    .
    .
    .
    EnvScript=/global/mnt3/tomcat/env.ksh
    User=tomcat
    Basepath=/global/mnt3/tomcat/apache-tomcat-5.5.17
    Host=ha-host-1
    Port=8080
    TestCmd="get /index.jsp"
    ReturnString="CATALINA"
    Startwait=20
    
  4. Save and close the file.

  5. Leave the zone.

  6. Copy the Apache Tomcat configuration file from the agent directory to its deployment location.


    phys-schost-1# cp /opt/SUNWsctomcat/util/sctomcat_config /global/mnt3
    
  7. Add this cluster's information to the sctomcat_config configuration file.

    The following listing shows the relevant file entries and the values to assign to each entry.


    .
    .
    .
    
    RS=RS-TOM
    RG=RG-TOM
    PORT=8080
    LH=ha-host-1
    NETWORK=true
    SCALABLE=false
    PFILE=/global/mnt3/pfile
    HAS_RS=RS-TOM-HAS
    
  8. Save and close the file.