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
- Download the Tomcat_Upgrade-<Tomcat-Version>.tgz file from the patches page on EPD.
- Copy the file to your server.
- 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
- 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:
- Download the Tomcat_Upgrade-<Tomcat Version>.tgz file from the Patches page on EPD.
- Copy the file to your server.
- Provide the required permission for the non-root user to extract the file and run the script inside it.
- 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
- 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*