How to Find the Version of a Tomcat Server

How to Find the Version of a Tomcat Server

How to Find the Version of a Tomcat Server

Apache Tomcat is an open-source Java servlet container and web server that creates dynamic web content by executing Java web applications on the server side.

Overview

In this tutorial, we’ll discuss how to find the version of a Tomcat server. The version of the Tomcat server we’ll be using in the examples is 10.1.52. We run the server on the Debian 12 distro.

The Web Interface

We can access the server from the node where the server is running by opening the URL http://localhost:8080 in a web browser:

The Apache Tomcat server runs on port 8080 by default. Evidently, the server’s version is 10.1.52. If we attempt to check it from a remote host, we need to replace localhost in the URL with the server’s IP address.

The title of the web page is Apache Tomcat/10.1.52. Therefore, we can also get the version from the title using curl:

$ curl -s http://localhost:8080 | grep title

<title>Apache Tomcat/10.1.52</title>

The version.sh Script

We can use the version.sh script in the bin directory of the Tomcat Server to display its version:

$ cd /opt/tomcat

$ ./bin/version.sh

Using CATALINA_BASE:

/opt/tomcat

Using CATALINA_HOME:

/opt/tomcat

Using CATALINA_TMPDIR: /opt/tomcat/temp

Using JRE_HOME:

/usr

Using CLASSPATH:

/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar

Using CATALINA_OPTS:

Server version: Apache Tomcat/10.1.52

Server built:

Jan 23 2026 19:29:07 UTC

Server number: 10.1.52.0

OS Name:

Linux

OS Version:

6.1.0-10-amd64

Architecture:

amd64

JVM Version:

17.0.18+8-Debian-1deb12u1

JVM Vendor:

Debian

We can print only the server’s version by filtering the output using grep:

$ ./bin/version.sh | grep "Server version"

Server version: Apache Tomcat/10.1.52

The catalina.sh Script

Another option is to use the catalina.sh script in the bin directory:

$ ./bin/catalina.sh version

Using CATALINA_BASE:

/opt/tomcat

Using CATALINA_HOME:

/opt/tomcat

Using CATALINA_TMPDIR: /opt/tomcat/temp

Using JRE_HOME:

/usr

Using CLASSPATH:

/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar

Using CATALINA_OPTS:

Server version: Apache Tomcat/10.1.52

Server built:

Jan 23 2026 19:29:07 UTC

Server number: 10.1.52.0

This script is useful for various purposes. For example, we can use it to start and stop the server. So, it takes several commands. We pass the version command to display the version of the Tomcat server.

There are several ways to find the version of a Tomcat server. We can use the web interface, the version.sh script, or the catalina.sh script. Each method has its own advantages and disadvantages. The web interface is the simplest method, but it requires the server to be running. The version.sh script is more versatile and can be used even if the server is not running. The catalina.sh script is also useful for starting and stopping the server.

By following the steps outlined in this tutorial, you should be able to find the version of your Tomcat server. Remember to replace the version number with the actual version of your server.