Skip to main content

Updating Tomcat version on the Faddom Server Appliance

Written by Itamar Rotem
Updated this week

Update Instructions

If you have internet access from the Faddom server, you can use the attached script to run the upgrade. If not, you can follow the procedure below. In any case, it is recommended to create a snapshot of the Faddom server VM before starting.

Backup your old Tomcat directory

IMPORTANT! We will later need some files from here.

sudo cp -r /usr/local/tomcat9 /usr/local/tomcat9-backup

Stop the tomcat server

sudo systemctl stop tomcat

Download the latest Tomcat 10 version

The links to the latest version can be found here: https://tomcat.apache.org/download-10.cgi. The needed file is the Core tar.gz file.

As of the latest update of this article, the latest version is 10.1.53 and can be downloaded as follows:

wget https://dlcdn.apache.org/tomcat/tomcat-10/v10.1.53/bin/apache-tomcat-10.1.53.tar.gz

It is recommended to verify the download using the following commands:

wget https://downloads.apache.org/tomcat/tomcat-10/v10.1.53/bin/apache-tomcat-10.1.53.tar.gz.sha512 

sha512sum -c apache-tomcat-10.1.53.tar.gz.sha512

Your output should be:

apache-tomcat-10.1.53.tar.gz: OK

If you do not have an internet connection from the Faddom server, you can download the core tar.gz file and the sha512 signature file from the Tomcat downloads page instead of using wget and then copy them to the server.

Update Tomcat

First, extract the files from the downloaded archive:

tar -xf apache-tomcat-10.1.53.tar.gz

Copy the lib and bin directories from the new version:

yes | cp -rf apache-tomcat-10.1.53/bin apache-tomcat-10.1.53/lib /usr/local/tomcat10/

Restore files from the backed up version.

When updating the Faddom Server appliance:

yes | cp -rf /usr/local/tomcat9-backup/bin/setenv.sh /usr/local/tomcat9-backup/bin/liblmxjava.so /usr/local/tomcat10/bin/

When updating the Faddom Proxy appliance:

yes | cp -rf /usr/local/tomcat9-backup/bin/setenv.sh /usr/local/tomcat10/bin/

Update permissions for the new files:

sudo chown tomcat:tomcat /usr/local/tomcat10/bin/* /usr/local/tomcat10/lib/*

Start tomcat

sudo systemctl start tomcat

After a few minutes, the server should be up and running. Once everything is running, you can delete the backup folder.

Did this answer your question?