Symptom
After upgrade from an old version with Java 8 (1808, 1811) to a newer version with Java 11 (1905+), receive the following exception when executing some customized job:
INFO | jvm 1 | main | 2021/01/08 08:45:27.069 | javax.xml.bind.JAXBException
INFO | jvm 1 | main | 2021/01/08 08:45:27.069 | - with linked exception:
INFO | jvm 1 | main | 2021/01/08 08:45:27.069 | [javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
INFO | jvm 1 | main | 2021/01/08 08:45:27.069 | - with linked exception:
INFO | jvm 1 | main | 2021/01/08 08:45:27.069 | [java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory]]
Kibana log will record errors like:
logs.thrown.cause.name java.lang.ClassNotFoundException
logs.thrown.extendedStackTrace {
"class": "javax.xml.bind.ContextFinder",
"method": "newInstance",
"file": "ContextFinder.java",
"line": 278,
"exact": false,
"location": "jaxb-api-2.3.1.jar",
"version": "2.3.0"
},
{
"class": "javax.xml.bind.ContextFinder",
"method": "find",
"file": "ContextFinder.java",
"line": 421,
"exact": false,
"location": "jaxb-api-2.3.1.jar",
"version": "2.3.0"
},
{
"class": "javax.xml.bind.JAXBContext",
"method": "newInstance",
"file": "JAXBContext.java",
"line": 721,
"exact": false,
"location": "jaxb-api-2.3.1.jar",
"version": "2.3.0"
},
..........
Read more...
Environment
Hybris version >= 1905
Product
Keywords
JAXB, upgrade , KBA , CEC-SCC-PLA-PL , Platform , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.