The tomcat6 packaged in debian reports no version. This can be seen executing:
Which results in:
Using CATALINA_BASE: /usr/share/tomcat6
Using CATALINA_HOME: /usr/share/tomcat6
Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/share/tomcat6/bin/bootstrap.jar
Server version: Apache Tomcat/6.0.28
Server built: February 12 2011 1443
Server number: ...0
OS Name: Linux
OS Version: 2.6.32-5-amd64
JVM Version: 1.6.0_18-b18
JVM Vendor: Sun Microsystems Inc.
The server number should contain "188.8.131.52".
This doesn't seem to affect functionality, but it does affect the integration of
tomcat with other development tools. For example, netbeans 7.0.1 refuses to
use this tomcat installation to deploy webapps as it can't determine the
I've dug into it and found that the version number is fed to the build system
in the ant command line in the debian/rules script. The version is read from
the changelog, but then it's wrongly parsed into major/minor/build versions.
I've attached the patch I used to solve it.
I can confirm this happens in the tomcat6 packages in both squeeze and wheezy,
as well as in the tomcat7 packages from unstable and testing. I'll file another
bug report against it if needed.