Hello everyone, We deployed an application which uses JAXB on TomEE Plus 8.0.0 using openjdk 11 and have no issue.
Then I deployed the same application on TomEE Microprofile 8.0.0 using openjdk 11. In this case, the TomEE start failed. I got: java.lang.IllegalStateException: Error starting child ... Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] ... Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl I think I have identified the issue: using TomEE Plus, I have in the lib folder: jakarta.activation-1.2.1.jar and jaxb-runtime-2.3.2.jar so probably loaded by the same class loader and had no issue. When I deployed the same application in TomEE mircroprofile, I have only in the lib folder: jaxb-runtime-2.3.2.jar, the jakarta.activation-1.2.1.jar is missing. The workaround I have found is to include in the WEB-INF/lib folder of my application: jaxb-impl-2.3.2.jar (roughly same content than jaxb-runtime-2.3.2.jar), activation-1.1.1.jar (same class loader ?) Do you think that in the TomEE microprofile flavor, jakarta.activation-1.2.1.jar should be added in lib folder ? Is it a bug ? if yes, do I have to submit a ticket for that ? Best Regards. [Thales] François Courtault SOFTWARE ARCHITECT Tel.: +33 4 42 36 66 06 Gemalto is now part of the Thales Group. Please note that my new email address is [email protected]<mailto:[email protected]> THALES Avenue du Jujubier La Vigie Z.I. Athélia IV 13705 La Ciotat www.thalesgroup.com<http://www.thalesgroup.com> [http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_linkedin.png]<http://www.linkedin.com/company/thales> [http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_twitter.png]<https://twitter.com/thalesgroup> [http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_fb.png]<https://www.facebook.com/thalesgroup> [http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_youtube.png]<https://www.youtube.com/user/thethalesgroup> ________________________________ This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure, either whole or partial, is prohibited. E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender. Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.
