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:
Check the
CATALINA_HOME/libdirectory: The version of Tomcat is typically stored in a JAR file calledcatalina.jarin thelibdirectory under the Tomcat installation directory (CATALINA_HOME). You can check the version of this JAR file to determine the version of Tomcat.Check the
server.infosystem property: You can use the following command to get the value of theserver.infosystem property, which contains the version of Tomcat:
System.out.println(System.getProperty("server.info"));Check the
server.xmlfile: Theserver.xmlfile, which is located in theconfdirectory under the Tomcat installation directory (CATALINA_HOME), contains aServerelement that has aversionattribute. You can check the value of this attribute to determine the version of Tomcat.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.