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:
- Check the
CATALINA_HOME/libdirectory: The version of Tomcat is stored in theMETA-INF/MANIFEST.MFfile insidecatalina.jarlocated in thelibdirectory under the Tomcat installation directory (CATALINA_HOME). You can view this manifest file to determine the Tomcat version. - 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"));- Use the
ServerInfoutility class: You can programmatically retrieve the version usingorg.apache.catalina.util.ServerInfo.getServerInfo(). This method returns a string containing the Tomcat version and build information. - 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.