Bug#1057047: tomcat10-common: Tomcat 10 helper script doesn't look for temurin based jdk installs
Joan
aseques at gmail.com
Tue Nov 28 16:59:18 GMT 2023
Package: tomcat10-common
Version: 10.1.15-1
Severity: normal
X-Debbugs-Cc: aseques at gmail.com
Dear Maintainer,
* What led up to the situation?
I am trying to use debian's tomcat 10 with java 21, since it's not present on debian I used the one from
https://adoptium.net/installation/linux/ that has a repository.
When starting tomcat I see this error message on the logs:
" [crit] No JDK or JRE found - Please set the JAVA_HOME variable or install the default-jdk package"
I traced the message to the helper script /usr/libexec/tomcat10/tomcat-locate-java.sh, there adding the
temurin naming scheme made the helper found the proper java
from:.....
for jvmdir in /usr/lib/jvm/java-${java_version}-openjdk-* \
/usr/lib/jvm/jdk-${java_version}-oracle-* \
/usr/lib/jvm/jre-${java_version}-oracle-* \
/usr/lib/jvm/java-${java_version}-oracle \
/usr/lib/jvm/oracle-java${java_version}-jdk-* \
/usr/lib/jvm/oracle-java${java_version}-jre-*
do
to:.......
for jvmdir in /usr/lib/jvm/java-${java_version}-openjdk-* \
/usr/lib/jvm/jdk-${java_version}-oracle-* \
/usr/lib/jvm/jre-${java_version}-oracle-* \
/usr/lib/jvm/java-${java_version}-oracle \
/usr/lib/jvm/oracle-java${java_version}-jdk-* \
/usr/lib/jvm/oracle-java${java_version}-jre-* \
/usr/lib/jvm/temurin-${java_version}-jre-* \
/usr/lib/jvm/temurin-${java_version}-jdk-*
do
Since currently the temurin path is quite a popular way to install recent jdk/jre version without
having to rely on oracle, supporting it on debian would be nice and without collateral issues
-- System Information:
Debian Release: bookworm/sid
APT prefers jammy-updates
APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.15.0-89-generic (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=ca:en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
More information about the pkg-java-maintainers
mailing list