Determining your version of Tomcat
search cancel

Determining your version of Tomcat

book

Article ID: 343474

calendar_today

Updated On:

Products

VMware Support Only for Apache Tomcat

Issue/Introduction

This article contains directions for determining the exact version of Tomcat you have installed, so that you can determine what features/bugs/fixes are present. The version is not always obvious, particularly if Tomcat is repackaged as part of another product. These directions enable you to find a Tomcat version number at least as specific as x.y.z, as well as other relevant information.

Environment

Apache Tomcat 6
VMware vFabric tc Server 2.5
Apache Tomcat 5.5
Apache Tomcat 7
VMware vFabric tc Server 2.1
VMware vFabric tc Server 2.0

Resolution

Get version information directly from the Tomcat code by executing this command in the Tomcat install directory:

Linux: java -cp lib/catalina.jar org.apache.catalina.util.ServerInfo
Windows: JAVA_HOME=C:\Program Files\Java\jre1.8.0_111\bin 
        java.exe -cp "C:\Program Files\VMware\Infrastructure\Inventory Service\lib\catalina.jar" org.apache.catalina.util.ServerInfo

Note: The version of Java used in this command may depend on how you have installed Java on your system, and is reflected in the output. To indicate a specific version of Java, specify the full path to the Java executable in the command.

The output varies depending on the product and environment.

Examples:

  • vFabric tc Server on Linux:

    Server version: SpringSource tc Runtime/2.0.4.RELEASE
    Server built: August 3 2010 0710
    Server number: 6.0.28.29
    OS Name: Linux
    OS Version: 2.6.18-194.11.1.el5
    Architecture: i386
    JVM Version: 1.6.0_21-b06
    JVM Vendor: Sun Microsystems Inc.

     
  • Apache Tomcat on Windows:

    Server version: Apache Tomcat/6.0.32
    Server built: February 2 2011 2003
    Server number: 6.0.32.0
    OS Name: Windows XP
    OS Version: 5.2
    Architecture: amd64
    JVM Version: 1.6.0_19-b04
    JVM Vendor: Sun Microsystems Inc.

The immediately relevant field in the output is Server number, which indicates the exact version of Tomcat, even in a derived product like vFabric tc Server. All of the output can be helpful information for troubleshooting.


Additional Information

Pivotal Links
 
Pivotal tc Server Knowledge Base: