Pages

Tuesday, June 30, 2015

Identify Tomcat version

While working with Tomcat server, there are needs where we need to check for the version of the Tomcat. We will see how many ways available for finding the version of the tomcat.

1)  [root@localhost bin]# ./catalina.sh version
Using CATALINA_BASE:   /work/tomcat
Using CATALINA_HOME:   /work/tomcat
Using CATALINA_TMPDIR: /work/tomcat/temp
Using JRE_HOME:        /root/jrockit/
Using CLASSPATH:       /work/tomcat/bin/bootstrap.jar:/work/tomcat/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.62
Server built:   May 7 2015 17:14:55 UTC
Server number:  7.0.62.0
OS Name:        Linux
OS Version:     3.10.0-123.el7.x86_64
Architecture:   amd64
JVM Version:    1.6.0_45-b06
JVM Vendor:     Oracle Corporation

2) [root@localhost lib]# java -cp catalina.jar org.apache.catalina.util.ServerInfo
Server version: Apache Tomcat/7.0.62
Server built:   May 7 2015 17:14:55 UTC
Server number:  7.0.62.0
OS Name:        Linux
OS Version:     3.10.0-123.el7.x86_64
Architecture:   amd64
JVM Version:    1.7.0_51-mockbuild_2014_04_04_16_39-b00
JVM Vendor:     Oracle Corporation

3) [root@localhost bin]# ./version.sh
Using CATALINA_BASE:   /work/tomcat
Using CATALINA_HOME:   /work/tomcat
Using CATALINA_TMPDIR: /work/tomcat/temp
Using JRE_HOME:        /root/jrockit/
Using CLASSPATH:       /work/tomcat/bin/bootstrap.jar:/work/tomcat/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.62
Server built:   May 7 2015 17:14:55 UTC
Server number:  7.0.62.0
OS Name:        Linux
OS Version:     3.10.0-123.el7.x86_64
Architecture:   amd64
JVM Version:    1.6.0_45-b06
JVM Vendor:     Oracle Corporation

No comments :

Post a Comment