[Bug 1780345] Re: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed
This bug was fixed in the package tomcat8 - 8.5.30-1ubuntu1.3 --- tomcat8 (8.5.30-1ubuntu1.3) bionic; urgency=medium * Search for Java 10 and 11 runtimes (LP: #1780345) -- Stefano Rivera Mon, 16 Jul 2018 20:41:29 -0700 ** Changed in: tomcat8 (Ubuntu Bionic) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780345 Title: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat8/+bug/1780345/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1780345] Re: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed
The version in -proposed works for me. (bionic-amd64)root@impulse:/home/bdmurray# service tomcat8 start * Starting Tomcat servlet engine tomcat8 [ OK ] (bionic-amd64)root@impulse:/home/bdmurray# apt-cache policy tomcat8 tomcat8: Installed: 8.5.30-1ubuntu1.3 Candidate: 8.5.30-1ubuntu1.3 Version table: *** 8.5.30-1ubuntu1.3 500 500 http://192.168.10.7/ubuntu bionic-proposed/universe amd64 Packages 100 /var/lib/dpkg/status 8.5.30-1ubuntu1.2 500 500 http://192.168.10.7/ubuntu bionic-updates/universe amd64 Packages 500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages 8.5.30-1ubuntu1 500 500 http://192.168.10.7/ubuntu bionic/universe amd64 Packages -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780345 Title: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat8/+bug/1780345/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1780345] Re: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed
Could you report which package version has been used for testing? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780345 Title: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat8/+bug/1780345/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1780345] Re: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed
Works for me. ** Tags removed: verification-needed verification-needed-bionic ** Tags added: verification-done verification-done-bionic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780345 Title: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat8/+bug/1780345/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1780345] Re: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed
Hello Stefano, or anyone else affected, Accepted tomcat8 into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/tomcat8/8.5.30-1ubuntu1.3 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: tomcat8 (Ubuntu Bionic) Status: New => Fix Committed ** Tags added: verification-needed verification-needed-bionic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780345 Title: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat8/+bug/1780345/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1780345] Re: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed
Yeah, just realised I forgot that, too. ** Description changed: + [Impact] + Tomcat won't start, unless default-jre-headless or openjdk-8-jre-headless is installed. + + If openjdk-11-jre is installed, it won't be used, unless default-jre- + headless is installed. + + [Test Case] + In a minimal install: + + # apt install tomcat8 openjdk-11-jre-headless + # service tomcat8 start + + If you get this error, you have reproduced the bug: + * no JDK or JRE found - please set JAVA_HOME + + If it starts, all is good + + [Regression Potential] + For some users, tomcat may now use Java 11 where it was previously using Java 8. + + [Bug Description] The tomcat8 init script contains: find_jdks() { - for java_version in 9 8 - do - 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 - do - if [ -d "${jvmdir}" ] - then - JDK_DIRS="${JDK_DIRS} ${jvmdir}" - fi - done - done + for java_version in 9 8 + do + 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 + do + if [ -d "${jvmdir}" ] + then + JDK_DIRS="${JDK_DIRS} ${jvmdir}" + fi + done + done } # The first existing directory is used for JAVA_HOME (if JAVA_HOME is not # defined in $DEFAULT) JDK_DIRS="/usr/lib/jvm/default-java" find_jdks When the default-jre package is installed, this detects Java 11, but when it isn't, it doesn't. # apt install tomcat8 openjdk-11-jre-headless # /etc/init.d/tomcat8 start - * no JDK or JRE found - please set JAVA_HOME + * no JDK or JRE found - please set JAVA_HOME This was fixed in Debian in 8.5.31-1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780345 Title: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat8/+bug/1780345/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1780345] Re: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed
This looks reasonable but please could you fill in the SRU information as required by https://wiki.ubuntu.com/StableReleaseUpdates#Procedure? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780345 Title: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat8/+bug/1780345/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1780345] Re: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed
** Changed in: tomcat8 (Ubuntu) Status: New => Fix Released ** Changed in: tomcat8 (Ubuntu Bionic) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780345 Title: Tomcat8 doesn't detect JRE > 8 when the default-jre package isn't installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat8/+bug/1780345/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs