W3docs

Tomcat: How to find out running Tomcat version?

There are several ways to find out the version of Tomcat that is running on your system:

There are several ways to find out the version of Tomcat that is running on your system:

  1. Check the CATALINA_HOME/lib directory: The version of Tomcat is stored in the META-INF/MANIFEST.MF file inside catalina.jar located in the lib directory under the Tomcat installation directory (CATALINA_HOME). You can view this manifest file to determine the Tomcat version.
  2. Check the server.info system property: You can use the following command to get the value of the server.info system property, which contains the version of Tomcat:
System.out.println(System.getProperty("server.info"));
  1. Use the ServerInfo utility class: You can programmatically retrieve the version using org.apache.catalina.util.ServerInfo.getServerInfo(). This method returns a string containing the Tomcat version and build information.
  2. Check the Tomcat welcome page: If Tomcat is running and accessible, you can access the Tomcat welcome page at http://localhost:8080, and the version of Tomcat will be displayed at the bottom of the page.