Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.0-M7
-
None
-
Apache Maven 3.6.3
Java version: 13.0.2, vendor: Oracle Corporation
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Description
I cloned the isis-app-simpleapp repository, switched to JDO branch, built project, and ran via the 'java -jar target/simpleapp-jdo-webapp-2.0.0-M7-exec.jar' command. Same result for JPA branch.
Error on console:
```
java.lang.RuntimeException: unrecoverable error: 'Error obtaining JAXBContext for class; object class is 'org.apache.isis.schema.cmd.v2.CommandDto'' with cause ...
at org.apache.isis.commons.internal.exceptions._Exceptions.unrecoverable(_Exceptions.java:144) ~[isis-commons-2.0.0-M7.jar!/:2.0.0-M7]
at org.apache.isis.commons.internal.resources._Xml.verboseException(_Xml.java:201) ~[isis-commons-2.0.0-M7.jar!/:2.0.0-M7]
at org.apache.isis.commons.internal.resources._Xml.contextOf(_Xml.java:226) ~[isis-commons-2.0.0-M7.jar!/:2.0.0-M7]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) ~[?:?]
at org.apache.isis.commons.internal.resources._Xml.jaxbContextFor(_Xml.java:217) ~[isis-commons-2.0.0-M7.jar!/:2.0.0-M7]
at org.apache.isis.applib.util.JaxbUtil.jaxbContextFor(JaxbUtil.java:111) ~[isis-applib-2.0.0-M7.jar!/:2.0.0-M7]
at org.apache.isis.applib.util.schema.CommandDtoUtils.getJaxbContext(CommandDtoUtils.java:57) ~[isis-applib-2.0.0-M7.jar!/:2.0.0-M7]
at org.apache.isis.applib.util.schema.CommandDtoUtils.init(CommandDtoUtils.java:50) ~[isis-applib-2.0.0-M7.jar!/:2.0.0-M7]
at org.apache.isis.commons.internal.concurrent._ConcurrentTask$3.innerCall(_ConcurrentTask.java:150) ~[isis-commons-2.0.0-M7.jar!/:2.0.0-M7]
at org.apache.isis.commons.internal.concurrent._ConcurrentTask$3.innerCall(_ConcurrentTask.java:146) ~[isis-commons-2.0.0-M7.jar!/:2.0.0-M7]
at org.apache.isis.commons.internal.concurrent._ConcurrentTask$1.innerCall(_ConcurrentTask.java:109) ~[isis-commons-2.0.0-M7.jar!/:2.0.0-M7]
at org.apache.isis.commons.internal.concurrent._ConcurrentTask.run(_ConcurrentTask.java:86) ~[isis-commons-2.0.0-M7.jar!/:2.0.0-M7]
at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1406) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177) ~[?:?]
Caused by: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:232) ~[jakarta.xml.bind-api-2.3.3.jar!/:2.3.3]
at javax.xml.bind.ContextFinder.find(ContextFinder.java:375) ~[jakarta.xml.bind-api-2.3.3.jar!/:2.3.3]
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691) ~[jakarta.xml.bind-api-2.3.3.jar!/:2.3.3]
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632) ~[jakarta.xml.bind-api-2.3.3.jar!/:2.3.3]
at org.apache.isis.commons.internal.resources._Xml.contextOf(_Xml.java:224) ~[isis-commons-2.0.0-M7.jar!/:2.0.0-M7]
... 15 more
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602) ~[?:?]
at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
at javax.xml.bind.ServiceLoaderUtil.nullSafeLoadClass(ServiceLoaderUtil.java:92) ~[jakarta.xml.bind-api-2.3.3.jar!/:2.3.3]
at javax.xml.bind.ServiceLoaderUtil.safeLoadClass(ServiceLoaderUtil.java:125) ~[jakarta.xml.bind-api-2.3.3.jar!/:2.3.3]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:230) ~[jakarta.xml.bind-api-2.3.3.jar!/:2.3.3]
at javax.xml.bind.ContextFinder.find(ContextFinder.java:375) ~[jakarta.xml.bind-api-2.3.3.jar!/:2.3.3]
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691) ~[jakarta.xml.bind-api-2.3.3.jar!/:2.3.3]
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632) ~[jakarta.xml.bind-api-2.3.3.jar!/:2.3.3]
at org.apache.isis.commons.internal.resources._Xml.contextOf(_Xml.java:224) ~[isis-commons-2.0.0-M7.jar!/:2.0.0-M7]
... 15 more
```
Attachments
Issue Links
- is fixed by
-
CAUSEWAY-2978 [Commons] Concurrent Threads use wrong ClassLoader
- Closed