Bug#495235: tomcat5.5 doesn't recognize openjdk-6-jre for running

Henning Sprang henning.sprang at gmail.com
Fri Aug 15 15:40:12 UTC 2008


PACKAGE: tomcat5.5
Severity: important

When installing tomcat5.5 together with openjdk-6-jre, on the one
hand, the openjdk seems to fulfill tomcat's dependencies quite well.

On the other hand, the tomcat5.5 install/init.d scripts do not search
the openjdk path for a valid jdk, and so tomcat cannot be started, and
so the postinst script fails and tomcat is cannot be correctly
installed, dpkg fails.

A workaround for users hit by this is to set JAVA_HOME in
/etc/defaults/tomcat5.5 to the openjdk-6-jre location, namely to the
value "/usr/lib/jvm/java-6-openjdk", and run apt-get install -f after
that.

A solution for the package is to add the openjdk path to the search
list, see the included diff for /etc/init.d/tomcat5.5


--- /etc/init.d/tomcat5.5-orig	2008-08-15 03:51:56.000000000 +0200
+++ /etc/init.d/tomcat5.5	2008-08-15 03:53:17.000000000 +0200
@@ -48,7 +48,7 @@

 # The first existing directory is used for JAVA_HOME (if JAVA_HOME is not
 # defined in $DEFAULT)
-JDK_DIRS="/usr/lib/jvm/java-6-sun /usr/lib/jvm/java-1.5.0-sun
/usr/lib/j2sdk1.5-sun /usr/lib/j2sdk1.5-ibm /usr/lib/j2sdk1.4-sun
/usr/lib/j2sdk1.4-blackdown /usr/lib/j2se/1.4 /usr/lib/j2sdk1.4-ibm
/usr/lib/j2sdk1.3-sun /usr/lib/j2sdk1.3-blackdown
/usr/lib/jvm/java-gcj /usr/lib/kaffe"
+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 /usr/lib/j2sdk1.4-sun
/usr/lib/j2sdk1.4-blackdown /usr/lib/j2se/1.4 /usr/lib/j2sdk1.4-ibm
/usr/lib/j2sdk1.3-sun /usr/lib/j2sdk1.3-blackdown
/usr/lib/jvm/java-gcj /usr/lib/kaffe"

 # Look for the right JVM to use
 for jdir in $JDK_DIRS; do

Setting severity to important as it's a minimal change, but makes it
hard to use apache with the real gpl and up to date java
implementation available in Lenny.


-- 
Henning Sprang
http://www.sprang.de | http://lazyb0y.blogspot.com/





More information about the pkg-java-maintainers mailing list