Description
Problem description
Followed guide https://isis.apache.org/docs/2.0.0-M7/starters/simpleapp.html#downloading-&-running
My environment:
- Windows 10
- openjdk 11.0.2 2019-01-15
I use in all cases same JDK.
Launching from IDE (IntelliJ) works fine, but when launching the packaged JAR with
somePath\isis-app-simpleapp-jdo\webapp\target> java -jar .\simpleapp-jdo-webapp-2.0.0-M7-exec.jar
I get next error - see attached log for whole startup log
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) ~[?:?] 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
Attachments
Issue Links
- fixes
-
CAUSEWAY-2990 [Duplicate] Clean build and run displays ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
- Closed