Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2978

[Commons] Concurrent Threads use wrong ClassLoader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 2.0.0-M7
    • 2.0.0-M8
    • Core
    • None

    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

        1. startup.txt
          77 kB
          Vladimir Nisevic

        Issue Links

          Activity

            People

              hobrom Andi Huber
              niv Vladimir Nisevic
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: