Apache Tomcat
TuxCare's Endless Lifecycle Support (ELS) for Apache Tomcat provides security patches, and selected bug fixes, that are integral to the stable operation of applications running on these versions of Apache Tomcat core components such as Coyote, Catalina, Jasper etc.. These components have either reached their end of standard support from vendors or have reached End of Life (EOL). Our ELS for Apache Tomcat service is designed to provide solutions for organizations that are not yet ready to migrate to newer versions and that are seeking long-term stability for their legacy Apache Tomcat applications.
This guide outlines the steps needed for Apache Tomcat server setup and configuration.
Apache Tomcat is also available for installation as a library for Maven and Gradle projects. You can find the corresponding instructions here.
Supported Versions
- Apache Tomcat 8.5.100, 9.0.50, 9.0.75, 9.0.83, 9.0.87, 9.0.90, 9.0.100
Prerequisites
Ensure you have a compatible version of Java Development Kit (JDK) installed. JDK 7 or later is required.
To verify if JDK is already installed on your system, open a terminal or command prompt and run:
java -versionIf JDK is installed, you should see version information. If not, you'll need to install it.
Make sure the
JAVA_HOMEenvironment variable is properly set to point to your JDK installation directory.
Repository Access
You need username and password to access the TuxCare ELS Apache Tomcat repository. Anonymous access is disabled. To obtain credentials, please contact sales@tuxcare.com.
Once you have credentials, you can access the repository at: nexus.repo.tuxcare.com/repository/els_tomcat/.
Linux Installation
Step 1: Create User and Group
For security purposes, create a
tomcatgroup:sudo groupadd tomcatCreate a new
tomcatuser as a member of thistomcatgroup, with a home directory of/opt/tomcat, which will be used to install Tomcat, and set the user's login shell to/bin/falseso that no one can log in directly as this user:sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat
Step 2: Download and Install Apache Tomcat
Open the terminal and download Apache Tomcat from TuxCare using your credentials. For example, Apache Tomcat 8.5.100:
curl -u USERNAME:PASSWORD -O https://nexus.repo.tuxcare.com/repository/els_tomcat/org/apache/tomcat/tomcat/8.5.100-tuxcare.3/tomcat-8.5.100-tuxcare.3.tar.gzReplace
USERNAMEandPASSWORDwith your actual credentials.Create the
/opt/tomcatdirectory and extract the Apache Tomcat archive into it:sudo mkdir -p /opt/tomcat sudo tar -xvzf tomcat-8.5.100-tuxcare.3.tar.gz -C /opt/tomcat --strip-components=1Change to the Tomcat installation directory:
cd /opt/tomcat
Step 4: Configure Permissions
Update permissions so that the tomcat user has access to the Tomcat installation.
Change ownership to the
tomcatgroup:sudo chgrp -R tomcat /opt/tomcatGive the
tomcatgroup read access to theconfdirectory and its contents, and execute access to the directory itself:sudo chmod -R g+r conf sudo chmod g+x confGive the
tomcatuser write access to thewebapps,work,temp, andlogsdirectories:sudo chown -R tomcat webapps/ work/ temp/ logs/
Step 5: Configure Environment Variables
Add the following line at the end of your
~/.bashrcfile, updating the path if needed:export CATALINA_HOME=/opt/tomcatIf you're using a different shell, you may need to edit
~/.bash_profileinstead.Then reload:
source ~/.bashrcVerify the changes:
echo $CATALINA_HOME
Step 6: Run Tomcat
To start Tomcat run:
sudo -u tomcat /opt/tomcat/bin/startup.shVerify installation.
Go to http://localhost:8080/ in your browser. You should see the default Tomcat homepage.
Or check from the terminal:
curl http://localhost:8080Successful output will be an HTML page from Tomcat.
To stop Tomcat run:
sudo -u tomcat /opt/tomcat/bin/shutdown.sh
Windows Installation
Step 1: Download Apache Tomcat
Download the Apache Tomcat .zip archive from https://nexus.repo.tuxcare.com/repository/els_tomcat/ using your credentials.
Step 2: Extract and Install
- Extract the downloaded archive, for example, apache-tomcat-8.5.100-tuxcare.3.zip, to the installation directory, e.g.,
C:\Tomcat.
Step 3: Configure Environment Variables
Right-click This PC → Properties → Advanced system settings → Environment Variables.
Add a new system variable named
CATALINA_HOMEwith the valueC:\Tomcat\apache-tomcat-8.5.100-tuxcare.3(or your installation path).
Step 4: Run Tomcat
Start Tomcat by double-clicking
C:\Tomcat\apache-tomcat-8.5.100-tuxcare.3\bin\startup.bat.Verify installation. Go to http://localhost:8080/ in your browser. You should see the default Tomcat homepage.
Stop Tomcat by double-clicking
C:\Tomcat\apache-tomcat-8.5.100-tuxcare.3\bin\shutdown.bat.
Upgrading to a Newer TuxCare Version
To upgrade to a newer TuxCare release (e.g., from tuxcare.1 to tuxcare.3):
Download and extract a new version of the Apache Tomcat archive from TuxCare using the instructions above.
Start Tomcat by running the startup script.
Logs Location
Check logs for detailed error information:
Linux:
/opt/tomcat/logs/catalina.outWindows:
C:\Tomcat\logs\catalina.[date].log
Vulnerability Exploitability eXchange (VEX)
VEX is a machine-readable format that indicates whether a known vulnerability is actually exploitable in your product. It helps reduce false positives and prioritize real risks.
TuxCare provides VEX data for Apache Tomcat ELS versions at: security.tuxcare.com/vex/cyclonedx/els_lang_java/.



