Bug#894318: tomcat8 fail to find oracle jvm built with make-jpkg
Daniele Palumbo
daniele at retaggio.net
Thu Mar 29 01:42:20 UTC 2018
Package: tomcat8
Version: 8.5.14-1+deb9u2
Severity: normal
Dear Maintainer,
tomcat8 has, in its init script, a lookup over the available jvm.
"""
for jvmdir in /usr/lib/jvm/java-${java_version}-openjdk-* \
/usr/lib/jvm/jdk-${java_version}-oracle-* \
/usr/lib/jvm/jre-${java_version}-oracle-*
"""
the new make-jpkg has a different syntax, likely from version 0.61
>From http://metadata.ftp-master.debian.org/changelogs/contrib/j/java-package/java-package_0.62_changelog
"""
* Use package name plus architecture as directory in /usr/lib/jvm
"""
to better understand the difference, see the following path of installation
old package path (jessie)
/usr/lib/jvm/jdk-8-oracle-x64/
new package path (stretch)
/usr/lib/jvm/oracle-java8-jdk-amd64/
The workaround as suggested also by the init script is to set JAVA_HOME variable indefault file.
A patch should be considered to properly lookup the new java package built.
Nevertheless, i would suggest to lookup the alternative jdk selected, in place of JAVA_HOME.
-- System Information:
Debian Release: 9.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages tomcat8 depends on:
ii adduser 3.115
ii debconf [debconf-2.0] 1.5.61
ii lsb-base 9.20161125
ii tomcat8-common 8.5.14-1+deb9u2
ii ucf 3.0036
Versions of packages tomcat8 recommends:
ii authbind 2.1.2
ii libtcnative-1 1.2.12-2+deb9u1
Versions of packages tomcat8 suggests:
ii tomcat8-admin 8.5.14-1+deb9u2
pn tomcat8-docs <none>
pn tomcat8-examples <none>
pn tomcat8-user <none>
-- debconf information:
tomcat8/username: tomcat8
tomcat8/groupname: tomcat8
tomcat8/javaopts: -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
More information about the pkg-java-maintainers
mailing list