I just got bitten by the Tomcat6 being compiled for JDK 1.6, for someone who is used to the standard distributions from http://tomcat.apache.org/ I lost quite a bit of time chasing down the reason.
It wasn't helped by the fact that in the file /etc/init.d/tomcat6 is the line:
I just got bitten by the Tomcat6 being compiled for JDK 1.6, for someone who is used to the standard distributions from http:// tomcat. apache. org/ I lost quite a bit of time chasing down the reason.
It wasn't helped by the fact that in the file /etc/init.d/tomcat6 is the line:
JDK_DIRS= "/usr/lib/ jvm/java- 6-openjdk /usr/lib/ jvm/java- 6-sun /usr/lib/ jvm/java- 1.5.0-sun /usr/lib/ j2sdk1. 5-sun /usr/lib/ j2sdk1. 5-ibm"
which means that tomcat6 will attempt to use a 1.5 JDK if a 1.6 JDK isn't installed.
Tomcat 6 runs fine on JDK 1.5 and it would be helpful if the packaged version was compiled so that it would run against it.