Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2207563

Summary: Remove java-11-openjdk-headles as a tomcat dependency
Product: Red Hat Enterprise Linux 9 Reporter: Marcin Skarbek <redhat>
Component: tomcatAssignee: huwang <huwang>
Status: CLOSED DUPLICATE QA Contact: tomcat-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.2CC: csutherl
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-16 15:16:18 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 Marcin Skarbek 2023-05-16 09:45:54 UTC
Description of problem:
The Tomcat package drags java-11-openjdk-headles as a dependency despite Java 17 being installed on the host, which should be sufficient to run Tomcat. This unnecessarily increases container image size. Maybe a solution similar to the maven package could be added with tomcat-openjdk{8,11,17} packages adding correct dependencies.

Version-Release number of selected component (if applicable):
tomcat-9.0.62-11.el9.noarch

How reproducible:
Each time

Steps to Reproduce:
1. podman run -it registry.access.redhat.com/ubi9/ubi:9.2 bash -l
2. dnf install java-17-openjdk-headless
3. dnf install tomcat

Actual results:
Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                               Architecture                        Version                                             Repository                                                     Size
===================================================================================================================================================================================================================
Installing:
 tomcat                                                noarch                              1:9.0.62-11.el9                                     rhel-9-for-x86_64-appstream-rpms                              100 k
Installing dependencies:
 ecj                                                   noarch                              1:4.20-11.el9                                       rhel-9-for-x86_64-appstream-rpms                              1.9 M
 java-11-openjdk-headless                              x86_64                              1:11.0.19.0.7-4.el9                                 rhel-9-for-x86_64-appstream-rpms                               40 M
 javapackages-tools                                    noarch                              6.0.0-4.el9                                         rhel-9-for-x86_64-appstream-rpms                               29 k
 tomcat-el-3.0-api                                     noarch                              1:9.0.62-11.el9                                     rhel-9-for-x86_64-appstream-rpms                              107 k
 tomcat-jsp-2.3-api                                    noarch                              1:9.0.62-11.el9                                     rhel-9-for-x86_64-appstream-rpms                               66 k
 tomcat-lib                                            noarch                              1:9.0.62-11.el9                                     rhel-9-for-x86_64-appstream-rpms                              5.8 M
 tomcat-servlet-4.0-api                                noarch                              1:9.0.62-11.el9                                     rhel-9-for-x86_64-appstream-rpms                              284 k

Transaction Summary
===================================================================================================================================================================================================================
Install  8 Packages


Expected results:
DNF installs Tomcat without Java 11 package.

Additional info:

Comment 1 Coty Sutherland 2023-06-16 15:16:18 UTC

*** This bug has been marked as a duplicate of bug 2173872 ***