Openbravo Issue Tracking System - Modules
View Issue Details
0044626ModulesAnalyticspublic2020-07-17 10:552020-10-07 17:23
cberner 
platform 
normalminorhave not tried
closedfixed 
5
 
 
0044626: Remove or fix jaxen-1.1.1.jar and xmlbeans-2.3.0 libraries to support Eclipse Java 11
Eclipse ecj compiler (compiling with java 11) generates an error when jaxen-1.1.1.jar or xmlbeans-2.3.0 are present because they collides with JDK package org.w3c.dom. Those jars are present in org.openbravo.client.analytics in lib/runtime/[1] and [2].

For jaxen new version was released to fix this issue, it is not a minor version however, so it should be checked prior to updating.[3]

These have to be fixed to support working with Eclipse on java 11.

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.client.analytics/-/tree/master/lib/runtime/jaxen-1.1.1.jar [^]

[2] https://gitlab.com/openbravo/product/pmods/org.openbravo.client.analytics/-/tree/master/lib/runtime/xmlbeans-2.3.0.jar [^]

[2] https://github.com/jaxen-xpath/jaxen/releases/tag/v1.2.0 [^]
Open an erp environment with analytics module in Eclipse and set the compiler to Java 11.

Errors and warnings should appear on build.
No tags attached.
blocks design defect 0044733 closed platform Openbravo ERP Tracking issue: Find and fix all jar libaries with split packages between classpath and system image (Forbidden since Java9) 
Issue History
2020-07-17 10:55cbernerNew Issue
2020-07-17 10:55cbernerAssigned To => platform
2020-07-17 10:55cbernerRelationship addedblocks 0044624
2020-07-17 11:02cbernerSummaryRemove or fix jaxen-1.1.1.jar library to support Eclipse Java 11 => Remove or fix jaxen-1.1.1.jar and xmlbeans-2.3.0 libraries to support Eclipse Java 11
2020-07-17 11:02cbernerDescription Updatedbug_revision_view_page.php?rev_id=21366#r21366
2020-07-17 11:02cbernerSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=21368#r21368
2020-07-31 13:54shuehnerRelationship addeddepends on 0044733
2020-07-31 14:30shuehnerRelationship replacedblocks 0044733
2020-09-29 17:28hgbotNote Added: 0123455
2020-10-05 10:06cbernerRelationship deletedblocks 0044624
2020-10-07 17:23hgbotResolutionopen => fixed
2020-10-07 17:23hgbotStatusnew => closed
2020-10-07 17:23hgbotNote Added: 0123606
2020-10-07 17:23hgbotNote Added: 0123607

Notes
(0123455)
hgbot   
2020-09-29 17:28   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.client.analytics/-/merge_requests/3 [^]
(0123606)
hgbot   
2020-10-07 17:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.client.analytics [^]
Changeset: 81054768c5165ca3ddb631d71122bba74b811ce9
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 2020-09-30T10:47:42+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.client.analytics/-/commit/81054768c5165ca3ddb631d71122bba74b811ce9 [^]

Fixes ISSUE-44626: Update jaxen and xmlbeans libraries to support Java 11

Both jaxen and xmlbeans libraries collide with jdk package org.w3c.dom,
those collisions are not allowed by Eclipse's Java compiler(ECJ).

Jaxen library is an optional compilation dependency of jdom and dom4j,
but it is used by Mondrian for some Analytics Process queries, and as
such is necessary or it will fail at runtime when executing those. Split
packaging is fixed in version 1.2.0, so it is update to that version.

xmlbeans is necessary to be able to export excel. Split packaging is
fixed in version 2.6.0. It is updated to the last version, 3.1.0.

jaxen-1.1.1.jar -> jaxen-1.2.0.jar
xmlbeans-2.3.0.jar -> xmlbeans-3.1.0.jar

---
A lib/runtime/jaxen-1.2.0.jar
A lib/runtime/xmlbeans-3.1.0.jar
M legal/Licensing.txt
R lib/runtime/jaxen-1.1.1.jar
R lib/runtime/xmlbeans-2.3.0.jar
---
(0123607)
hgbot   
2020-10-07 17:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.client.analytics/-/merge_requests/3 [^]