Bug#427816: tomcat 5.5 init script don't detect sun-java6-jdk

Pau Tallada Crespí pau_tallada at telefonica.net
Wed Jun 6 16:07:27 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: tomcat5.5
Version: 5.5.20-2
Severity: important

Hi, installing tomcat 5.5 on a debian etch with sun-java6 installed fails like 
this:
S'està configurant tomcat5.5 (5.5.20-2) ...
* Not starting Tomcat: no Java Development Kit found.
invoke-rc.d: initscript tomcat5.5, action "start" failed.
dpkg: s'ha produït un error en processar tomcat5.5 (--configure):

I've looked at init script and there is a list of JDK paths to try:

# The first existing directory is used for JAVA_HOME (if JAVA_HOME is not
# defined in $DEFAULT)
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/j2sdk1.5-ibm /usr/lib/j2sdk1.4-ibm /usr/lib/jvm/java-gcj /usr/lib/kaffe"

If I manually add the sun-java6-jdk path to the list:
"/usr/lib/jvm/java-6-sun"
then it can start again.

So this is a workaround...
Should sun-java6-home define $JAVA_HOME ?

Thanks in advance!

- --- System information. ---
Architecture: i386
Kernel:       Linux 2.6.18-4-k7

Debian Release: lenny/sid
  990 testing         snapshot.debian.net 
  990 testing         security.debian.org 
  990 testing         ftp.sunet.se 
  990 testing         ftp.rediris.es 
  500 unstable        www.in.fh-merseburg.de 
  500 etch            debian.beryl-project.org 
  300 unstable        ftp.rediris.es 

- --- Package information. ---
Depends                       (Version) | Installed
=======================================-+-================
java-gcj-compat-dev      (>= 1.0.30-5)  | 
 OR kaffe               (>= 2:1.1.6-3)  | 
 OR java2-runtime                       | 
libtomcat5.5-java         (>= 5.5.20-2) | 5.5.20-2
adduser                       (>= 3.34) | 3.102
apache2-utils                           | 2.2.3-4
 OR apache-utils                        | 
 OR apache2.2-common                    | 2.2.3-4
ecj-bootstrap                           | 3.2.1-6


- -- 
*--------------------------------------------------------------------*
| Pau Tallada Crespí                        GNU/Linux User : #345498 |
| SIP URL : sip:pautallada AT ekiga.net       GnuPG Key : 0xC2E6DD29 |
| Mail : pau_tallada AT telefonica DOT net                           |
*--------------------------------------------------------------------*
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGZtvDnplnCMLm3SkRAoBQAJwKDMBIpd4B70r+F6d3v0qnvKxGHACeMnJH
JNYANcwIO9A0chboJocfczY=
=2IkH
-----END PGP SIGNATURE-----




More information about the pkg-java-maintainers mailing list