Bug#386394: tomcat5: Fails to start: doesn't detect sun-java5-bin JVM

Bastian Kleineidam calvin at debian.org
Thu Sep 7 09:38:09 UTC 2006


Package: tomcat5
Version: 5.0.30-10
Severity: serious
Tags: patch
Justification: init.d start failure

Hi,

after installation I got this message:
Could not start Tomcat 5 servlet engine because no Java Development Kit
(JDK) was found. Please download and install JDK 1.3 or higher and set
JAVA_HOME in /etc/default/tomcat5 to the JDK's installation directory.

Adding /usr/lib/jvm/java-1.5.0-sun to the JDK dirs tomcat starts up
without errors. Here is the patch:

--- tomcat5.orig	2006-09-07 11:29:18.000000000 +0200
+++ tomcat5	2006-09-07 11:30:07.000000000 +0200
@@ -20,7 +20,7 @@
 
 # The first existing directory is used for JAVA_HOME (if JAVA_HOME is not
 # defined in $DEFAULT)
-JDK_DIRS="/usr/lib/j2sdk1.4-sun /usr/lib/j2sdk1.4-blackdown /usr/lib/j2se/1.4 /usr/lib/j2sdk1.5-sun /usr/lib/j2sdk1.3-sun /usr/lib/j2sdk1.3-blackdown /usr/lib/jvm/java-gcj /usr/lib/kaffe"
+JDK_DIRS="/usr/lib/jvm/java-1.5.0-sun /usr/lib/j2sdk1.4-sun /usr/lib/j2sdk1.4-blackdown /usr/lib/j2se/1.4 /usr/lib/j2sdk1.5-sun /usr/lib/j2sdk1.3-sun /usr/lib/j2sdk1.3-blackdown /usr/lib/jvm/java-gcj /usr/lib/kaffe"
 
 # Directory for per-instance configuration files and webapps
 CATALINA_BASE=/var/lib/tomcat5


Regards,
  Bastian
-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-treasure8
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)




More information about the pkg-java-maintainers mailing list