Upgrading Apache Tomcat


You can upgrade Apache Tomcat to obtain the latest Apache Tomcat components. With these patches, you can update Apache Tomcat without requiring a complete installation.

You can run the upgrade as both the root user and a non-root user.

To upgrade as a root user

  1. Download the Tomcat_Upgrade-<Tomcat-Version>.tgz file from the patches page on EPD.
  2. Copy the file to your server.
  3. On your server, you must be logged in as root and run the following commands (replace <Tomcat Version> with the actual version):
    • tar -xvzf Tomcat_Upgrade-<Tomcat-Version>.tgz
    • cd Tomcat_Upgrade-<Tomcat-Version>
    • ./tomcat_upgrade.sh
      For example, the following commands upgrade Tomcat to version 10.1.52:

      # tar -xvzf Tomcat_Upgrade-10.1.52.tgz
      # cd Tomcat_Upgrade-10.1.52
      # ./tomcat_upgrade.sh

       
  4. Once the upgrade is complete, restart Tomcat with the following commands:

    # systemctl stop tomcat
    # systemctl start tomcat

     

If additional configuration is required, see Configuring Tomcat for BMC AMI Ops Console Management.

To upgrade as a non-root user

To upgrade Apache Tomcat as a non-root user, perform the following steps:

  1. Download the Tomcat_Upgrade-<Tomcat Version>.tgz file from the Patches page on EPD.
  2. Copy the file to your server.
  3. Provide the required permission for the non-root user to extract the file and run the script inside it.
  4. On your server, you must be logged in as non-root and run the following commands (replace <Tomcat Version> with the actual version):
    • Make sure all bootstrap services are running; if not, use <AMICM_HOME>/bin/amicm_start_daemon.sh to start them.
    • Extract the Tomcat_Upgrade-<Tomcat Version>.tgz folder.
    • Change directory to the extracted folder and run the ./tomcat_upgrade.sh script. It should display Tomcat installation complete logs, as follows:
      tomcat_upgrade.sh: Everything looks good
      tomcat_upgrade.sh: Stopping tomcat
      Stopping tomcat
      tomcat_upgrade.sh: Waiting for Tomcat to stop
      tomcat_upgrade.sh: Cleanup tomcat
      tomcat_upgrade.sh: Unpack tomcat to <UN-TAR FILE LOCATION>
      tomcat_upgrade.sh: cp <AMICM_HOME>/apps/webapps/ems-help.war ...... <AMICM_HOME>/apps/webapps/mvcm-api.war 
      tomcat_upgrade.sh: Start tomcat
      Starting tomcat
      tomcat_upgrade.sh: Tomcat upgrade complete

       
  5. Restart Tomcat by running the following commands:

    <AMICM_HOME>/bin/amicm_stop_daemon.sh tomcat
    <AMICM_HOME>/bin/amicm_start_daemon.sh tomcat

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Ops Console Management 4.2