How to get the software versions of your JRE+Tomcat combo?

There's a version.sh shell-script in the "bin" subdirectory of the Tomcat home dir. You'll need to set the JAVA_HOME variable prior to running it.

Here's the code to get the software versions:
cd <TOMCAT_HOME>/bin
export JAVA_HOME=<JAVA_HOME>
sh ./version.sh

You should replace <TOMCAT_HOME> and <JAVA_HOME> with the appropriate pathes in the above template.

The output will be something similiar:
Using CATALINA_BASE:   /usr/local/apache/apache-tomcat-5.5.17
Using CATALINA_HOME:   /usr/local/apache/apache-tomcat-5.5.17
Using CATALINA_TMPDIR: /usr/local/apache/apache-tomcat-5.5.17/temp
Using JRE_HOME:       /usr/local/java/jre1.5.0_07
Server version: Apache Tomcat/5.5.17
Server built:   Apr 14 2006 02:08:29
Server number:  5.5.17.0
OS Name:        Linux
OS Version:     2.6.12-9-686
Architecture:   i386
JVM Version:    1.5.0_07-b03
JVM Vendor:     Sun Microsystems Inc.