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:

  1. Check the CATALINA_HOME/lib directory: The version of Tomcat is typically stored in a JAR file called catalina.jar in the lib directory under the Tomcat installation directory (CATALINA_HOME). You can check the version of this JAR file to determine the version of Tomcat.

  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. Check the server.xml file: The server.xml file, which is located in the conf directory under the Tomcat installation directory (CATALINA_HOME), contains a Server element that has a version attribute. You can check the value of this attribute to determine the version of Tomcat.

  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.

I hope this helps! Let me know if you have any questions.