Bug 2173874
Summary: | Tomcat installs older java even though newer java is installed | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Matus Madzin <mmadzin> |
Component: | tomcat | Assignee: | huwang <huwang> |
Status: | CLOSED ERRATA | QA Contact: | tomcat-qe |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.9 | CC: | aogburn, chorn, csutherl, huwang, masanari.iida |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | tomcat-9.0.62-14.el8_9 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-14 15:37:29 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matus Madzin
2023-02-28 08:39:28 UTC
We have a partner who has tried to verify this bz. He tied his system do nightly builds repository, which carries tomcat-9.0.62-10.el8 . Our partner reports that now, running 'dnf install tomcat', which is correctly picking up tomcat-9.0.62-10.el8, also 'java-1.8.0-openjdk-headless' is attempted to get installed. That's not desired as java is already installed on the system: # rpm -qa |grep java java-11-openjdk-11.0.20.0.8-2.el8.x86_64 javapackages-filesystem-5.3.0-1.module+el8+2447+6f56d9a6.noarch java-11-openjdk-headless-11.0.20.0.8-2.el8.x86_64 Our partner is also wondering: on rhel8.8, which java versions do we 'support' for using 'tomcat'? As per above, one would end up with 2 java versions installed, and repos have 1 or 2 further java versions. Would you mind to answer following questions? (1) On RHEL8.8, which version of Java openjdk is supported by tomcat? (2) If tomcat support Java-11-openjdk, but still dnf pulls java-1.8.0-openjdk-headless, can I remove the java-1.8.0-openjdk-headless using --nodeps option? (In reply to masanari iida from comment #16) > (2) If tomcat support Java-11-openjdk, but still dnf pulls > java-1.8.0-openjdk-headless, > can I remove the java-1.8.0-openjdk-headless using --nodeps option? We do not recommend that. This bz exists to properly solve the question via fixing the dependencies (and in the first place to clarify whether the old or the new java is intended to be used by the tomcat package). I have reached out to the colleague who apparently does QE in that area, but did not get a reply, just sent a reminder. Any version of OpenJDK that the platform provides is supported for use with Apache Tomcat; the minimum version that is supported is java-8 which is why it was required. Now that there are higher versions available we are adjusting the RPM Requires to allow for java-8, java-11, or java-17 to be used. I tried to verify this, but was not able. - install rhel8.8GA - update to RHEL-8.9.0-20231009.25 nightly build (which has fixed tomcat-9.0.62-14.el8_9) - install java-17-openjdk # dnf -y install java-17-openjdk - verify installation # rpm -qa|grep java javapackages-filesystem-5.3.0-1.module+el8+2447+6f56d9a6.noarch tzdata-java-2023c-1.el8.noarch java-17-openjdk-headless-17.0.8.0.7-2.el8.x86_64 java-17-openjdk-17.0.8.0.7-2.el8.x86_64 - Try to install Tomcat, verify if it pulls in older Java: # dnf install tomcat [..] Installing: tomcat noarch 1:9.0.62-14.el8_9 rhel-8.9-AppStream 91 k Installing dependencies: ecj noarch 1:4.20-10.el8 rhel-8.8-AppStream 2.0 M java-1.8.0-openjdk-headless x86_64 1:1.8.0.382.b05-2.el8 rhel-8.9-AppStream 34 M javapackages-tools noarch 5.3.0-1.module+el8+2447+6f56d9a6 rhel-8.8-AppStream 44 k tomcat-el-3.0-api noarch 1:9.0.62-14.el8_9 rhel-8.9-AppStream 106 k tomcat-jsp-2.3-api noarch 1:9.0.62-14.el8_9 rhel-8.9-AppStream 65 k tomcat-lib noarch 1:9.0.62-14.el8_9 rhel-8.9-AppStream 5.9 M tomcat-servlet-4.0-api noarch 1:9.0.62-14.el8_9 rhel-8.9-AppStream 286 k [..] Seems to me like java-1.8.0-openjdk-headless gets pulled in again? Tomcat isn't the only thing that requires Java. The ecj and javapackages-tools package also require java and tomcat depends on ecj and javapackages-tools. I have updated tomcat so that it can use any java version, but the ecj and javapackages-tools package both require java-8, so that's what get's installed. For ecj, I will fix it in rhel-8.10.0. javapackages-tools need to updated by the packager maintainer. (In reply to Christian Horn from comment #19) > I tried to verify this, but was not able. > > - install rhel8.8GA > - update to RHEL-8.9.0-20231009.25 nightly build (which has fixed > tomcat-9.0.62-14.el8_9) > > - install java-17-openjdk > # dnf -y install java-17-openjdk > - verify installation > # rpm -qa|grep java > javapackages-filesystem-5.3.0-1.module+el8+2447+6f56d9a6.noarch > tzdata-java-2023c-1.el8.noarch > java-17-openjdk-headless-17.0.8.0.7-2.el8.x86_64 > java-17-openjdk-17.0.8.0.7-2.el8.x86_64 > - Try to install Tomcat, verify if it pulls in older Java: > > # dnf install tomcat > [..] > Installing: > tomcat noarch > 1:9.0.62-14.el8_9 rhel-8.9-AppStream > 91 k > Installing dependencies: > ecj noarch > 1:4.20-10.el8 rhel-8.8-AppStream > 2.0 M > java-1.8.0-openjdk-headless x86_64 > 1:1.8.0.382.b05-2.el8 rhel-8.9-AppStream > 34 M > javapackages-tools noarch > 5.3.0-1.module+el8+2447+6f56d9a6 rhel-8.8-AppStream > 44 k > tomcat-el-3.0-api noarch > 1:9.0.62-14.el8_9 rhel-8.9-AppStream > 106 k > tomcat-jsp-2.3-api noarch > 1:9.0.62-14.el8_9 rhel-8.9-AppStream > 65 k > tomcat-lib noarch > 1:9.0.62-14.el8_9 rhel-8.9-AppStream > 5.9 M > tomcat-servlet-4.0-api noarch > 1:9.0.62-14.el8_9 rhel-8.9-AppStream > 286 k > [..] > > Seems to me like java-1.8.0-openjdk-headless gets pulled in again? Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: tomcat security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:7065 |