Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038901Openbravo ERPA. Platformpublic2018-07-05 10:012018-07-05 14:34
caristu 
caristu 
urgentminorhave not tried
closedfixed 
5
 
3.0PR18Q33.0PR18Q3 
alostale
Core
No
0038901: JDK 11: jaxbl-impl library should be included in the classpath
In Java 11, some modules are removed from the standard distribution. See[1].

Some of these modules were required in Openbravo, so in order to support Java 11 they were included to be deployed on the classpath. See[2].

For the case of the jaxb-api library, it has been detected that some modules require to include also its implementation (jaxbl-impl). See[3]. The following error appears if the implementation is required and not present:

javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory not found
 - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory]
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:148)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:371)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:446)

Besides, this is also happening with the Hibernate upgrade: with Hibernate 5.3 the jaxbl-impl is required.


[1] http://openjdk.java.net/jeps/320 [^]
[2] https://code.openbravo.com/erp/devel/pi/rev/c3a604592d8f59346c6a17cc7c511566602dc23c [^]
[3] https://ci.openbravo.com/job/try-ret-modules-oracle-suite1/11547/artifact/SANDBOX/tomcat-logs/catalina.2018-06-04.log/*view*/ [^]
Use case 1:

1) Build openbravo with Hibernate 5.3 (https://code.openbravo.com/erp/devel/pi-hb53 [^]), using JDK8
2) Login as System Administrator
3) Install a module using the Module Management Console: the error will be thrown during the update.database task

Use case 2:
1) Build openbravo with Hibernate 5.3 (https://code.openbravo.com/erp/devel/pi-hb53 [^]), using JDK11
2) In this case, the build can not be completed, it will fail when executing the update.database task
 
No tags attached.
blocks design defect 0038869 closed caristu JDK 11: jaxbl-impl library should be included in the classpath 
Issue History
2018-07-05 10:01caristuNew Issue
2018-07-05 10:01caristuAssigned To => caristu
2018-07-05 10:01caristuModules => Core
2018-07-05 10:01caristuTriggers an Emergency Pack => No
2018-07-05 10:01caristuIssue generated from0038869
2018-07-05 10:01caristuRelationship addedblocks 0038869
2018-07-05 10:06hgbotCheckin
2018-07-05 10:06hgbotNote Added: 0105617
2018-07-05 10:06hgbotStatusnew => resolved
2018-07-05 10:06hgbotResolutionopen => fixed
2018-07-05 10:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR18Q3/rev/6d2c0985043a61044abd67b9411253246bc5614f [^]
2018-07-05 10:06caristuReview Assigned To => alostale
2018-07-05 14:34alostaleNote Added: 0105642
2018-07-05 14:34alostaleStatusresolved => closed
2018-07-05 14:34alostaleFixed in Version => 3.0PR18Q3

Notes
(0105617)
hgbot   
2018-07-05 10:06   
Repository: erp/backports/3.0PR18Q3
Changeset: 6d2c0985043a61044abd67b9411253246bc5614f
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Jul 05 10:05:43 2018 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR18Q3/rev/6d2c0985043a61044abd67b9411253246bc5614f [^]

fixes issue 38901: jaxbl-impl library should be included in the classpath

---
M legal/Licensing.txt
A lib/runtime/jaxb-impl-2.2.6.jar
---
(0105642)
alostale   
2018-07-05 14:34   
reviewed
tested with openjdk version "11-ea" 2018-09-25:
* MMC -> scan for updates, install and compile modules
* send email