Bug 2225018

Summary: java.io.FileNotFoundException: /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-2.el9.x86_64/lib/tzdb.dat (No such file or directory)
Product: Red Hat Enterprise Linux 9 Reporter: Jenny at Neo4j <bintray-operator-account>
Component: java-11-openjdkAssignee: Andrew John Hughes <ahughes>
Status: NEW --- QA Contact: OpenJDK QA <java-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: orion
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Jenny at Neo4j 2023-07-24 09:24:39 UTC
Description of problem:

The latest redhat build of java-11-openjdk version, is missing a dependency on tzdata-java. This means that any java program using that timezone library will fail at runtime.

Older versions of java 11 all worked fine until this latest patch release. This has broken all current and historical releases of the database package I maintain, which itself depends on java 11.


Version-Release number of selected component (if applicable):
1:11.0.20.0.8-2.el9

How reproducible:
Very! This will also affect any version of RHEL which has java-11-openjdk version 1:11.0.20.0.8-2.el9 in its packages repository. This is at least 8.6 and 8.8 that I've tested.

Steps to Reproduce:

dnf install -y java-11-openjdk
stat /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-2.el9.x86_64/lib/tzdb.dat
# this will show that tzdb.dat exists and is a link to /usr/share/javazi-1.8/tzdb.dat
stat /usr/share/javazi-1.8/tzdb.dat

Actual results:
stat: cannot statx '/usr/share/javazi-1.8/tzdb.dat': No such file or directory

Expected results:

stat /usr/share/javazi-1.8/tzdb.dat
  File: /usr/share/javazi-1.8/tzdb.dat
  Size: 103613    	Blocks: 208        IO Block: 4096   regular file
Device: 52h/82d	Inode: 16405390    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-03-28 23:10:54.000000000 +0000
Modify: 2023-03-28 23:10:54.000000000 +0000
Change: 2023-07-24 09:18:39.987253964 +0000
 Birth: 2023-07-24 09:18:39.987253964 +0000


Additional info:
similar issue to https://bugzilla.redhat.com/show_bug.cgi?id=1130800

doing:
dnf install -y tzdata-java
installs the library.

Comment 1 Orion Poplawski 2023-07-28 19:55:18 UTC
Seeing the same issue here.

Comment 2 Orion Poplawski 2023-07-28 19:56:06 UTC
A workaround is to install tzdata-java - so looks like a missing requires?