Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #13080
| Path | csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | clort@tutanota.com |
| Newsgroups | linux.debian.maint.java |
| Subject | Bug Report: libjaxb-java incompatible with libjakarta-activation-java in Java Module System |
| Date | Fri, 10 Oct 2025 11:10:01 +0200 |
| Message-ID | <LEhip-46KS-7@gated-at.bofh.it> (permalink) |
| References | <LEhip-46KS-9@gated-at.bofh.it> |
| X-Original-To | Debian Java <debian-java@lists.debian.org> |
| X-Mailbox-Line | From debian-java-request@lists.debian.org Fri Oct 10 09:03:10 2025 |
| Old-Return-Path | <clort@tutanota.com> |
| X-Amavis-Spam-Status | No, score=-6.396 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -4.6 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Mailing-List | <debian-java@lists.debian.org> archive/latest/23819 |
| List-ID | <debian-java.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-java/> |
| List-Archive | https://lists.debian.org/msgid-search/ObCI3n0--F-9@tutanota.com |
| Approved | robomod@news.nic.it |
| Lines | 78 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Fri, 10 Oct 2025 10:45:53 +0200 (CEST) |
| X-Original-Message-ID | <ObCI3n0--F-9@tutanota.com> |
| X-Original-References | <ObCHrYR--g-9@tutanota.com> |
| Xref | csiph.com linux.debian.maint.java:13080 |
Show key headers only | View raw
Date: Oct 10, 2025, 10:44 From: clort@tutanota.com To: pkg-java-maintainers@lists.alioth.debian.org Subject: Bug Report: libjaxb-java incompatible with libjakarta-activation-java in Java Module System > Dear maintainers, > > I am writing to report a packaging incompatibility between the libjaxb-java and libjakarta-activation-java packages when used with a modern Java (9+) application that uses the module system. > > System Information: > > Distribution: Devuan Daedalus > Package Version: libjaxb-java 2.3.0.1-10.1 > Package Version: libjakarta-activation-java 2.0.0-1 > Java Version: > openjdk 17.0.16 2025-07-15 > OpenJDK Runtime Environment (build 17.0.16+8-Debian-1deb12u1) > OpenJDK 64-Bit Server VM (build 17.0.16+8-Debian-1deb12u1, mixed mode, sharing) > > Summary of the Problem: > The jaxb-api.jar file provided by libjaxb-java declares a dependency on a module named java.activation. However, the jakarta-activation.jar provided by libjakarta-activation-java provides a module named jakarta.activation. This mismatch prevents any Java application from using both packages together with the --add-modules flag, resulting in a FindException. > > Steps to Reproduce: > > On a clean Devuan Daedalus system, install the required packages: > sudo apt install default-jdk libjaxb-java libjakarta-activation-java > Create a minimal test case. The following invocation fails: > java --module-path /usr/share/java/jaxb-api.jar:/usr/share/java/jakarta-activation.jar --add-modules java.xml.bind,jakarta.activation -jar [any-jar-that-uses-jaxb] > > The command produces the following error: > Error occurred during initialization of boot layer > java.lang.module.FindException: Module java.activation not found, required by java.xml.bind > > Root Cause Analysis: > The module-info.class within /usr/share/java/jaxb-api.jar contains a requires java.base; and requires java.activation; clause. However, the module-info.class within /usr/share/java/jakarta-activation.jar defines its name as module jakarta.activation. The module system cannot resolve this dependency. > > Workaround: > The only way to use these libraries is to bypass the module system entirely and use the traditional classpath: > > java -cp /usr/share/java/jaxb-api.jar:/usr/share/java/jaxb-runtime.jar:/usr/share/java/jakarta-activation.jar:[app].jar [main.class] > > This is not ideal as it prevents the use of modern Java features. > > Suggested Fix: > The libjaxb-java package should be rebuilt so its jaxb-api.jar module correctly depends on jakarta.activation instead of java.activation, aligning it with the Jakarta EE standard that the companion packages have adopted. > > Thank you for your time and for maintaining Devuan. Please let me know if you need any further information or testing. > > Best regards, > clort@tutanota.com >
Back to linux.debian.maint.java | Previous | Next | Find similar
Bug Report: libjaxb-java incompatible with libjakarta-activation-java in Java Module System clort@tutanota.com - 2025-10-10 11:10 +0200
csiph-web