Bug#644340: tomcat7: action "start" failed: no JDK found - please set JAVA_HOME

Miguel Landaeta miguel at miguel.cc
Tue Oct 4 22:56:24 UTC 2011


Package: tomcat7
Version: 7.0.21-1
Severity: important

root at alice:/# invoke-rc.d tomcat7 start
no JDK found - please set JAVA_HOME ... failed!
invoke-rc.d: initscript tomcat7, action "start" failed.
root at alice:/# 

The recent changes in openjdk-6 that enable support for multi-arch
break default configuration of tomcat7.

Since JAVA_HOME is not set by default, tomcat7 looks for these paths
as JAVA_HOME candidates:

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"

In a clean chroot with openjdk-6-jre 6b23~pre10-1 none of those paths are valid.

I'm not sure how to fix this, my questions are:

Should I add /usr/lib/jvm/java-6-openjdk-$(dpkg-architecture -qDEB_HOST_ARCH)
to JDK_DIRS list?

Or should I just add /usr/lib/jvm/default-java to that list?

Thanks,

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tomcat7 depends on:
ii  adduser                3.113
ii  debconf [debconf-2.0]  1.5.41
ii  tomcat7-common         7.0.21-1
ii  ucf                    3.0025+nmu2

Versions of packages tomcat7 recommends:
pn  authbind  <none>

Versions of packages tomcat7 suggests:
pn  libtcnative-1     <none>
pn  tomcat7-admin     <none>
pn  tomcat7-docs      <none>
pn  tomcat7-examples  <none>
pn  tomcat7-user      <none>

-- Configuration Files:
/etc/logrotate.d/tomcat7 changed [not included]

-- debconf information:
  tomcat7/groupname: tomcat7
  tomcat7/username: tomcat7
  tomcat7/javaopts: -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC

-- 
Miguel Landaeta, miguel at miguel.cc
secure email with PGP 0x7D8967E9 available at http://keyserver.pgp.com/
"Faith means not wanting to know what is true." -- Nietzsche
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20111004/863973e6/attachment-0001.pgp>


More information about the pkg-java-maintainers mailing list