Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-291

Java 11 support: JAX-RS not compilable

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.1
    • 1.2.2
    • JAX-RS
    • None
    • JDK 11 on Win8.1/Eclipse.

    Description

      Checked out complete johnzon today, but was not able to build other modules than core and mapper.

      [INFO] Running org.apache.johnzon.jaxrs.ConfigurableJohnzonProviderTest
      [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.682 s <<< FAILURE! - in org.apache.johnzon.jaxrs.ConfigurableJohnzonProviderTest
      [ERROR] org.apache.johnzon.jaxrs.ConfigurableJohnzonProviderTest Time elapsed: 0.682 s <<< ERROR!
      java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
      at org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.createResourceInfo(JAXRSServiceFactoryBean.java:203)
      at org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.setResourceClasses(JAXRSServiceFactoryBean.java:166)
      at org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.setResourceClasses(JAXRSServiceFactoryBean.java:212)
      at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setResourceClasses(JAXRSServerFactoryBean.java:299)
      at org.apache.johnzon.jaxrs.ConfigurableJohnzonProviderTest.bindEndpoint(ConfigurableJohnzonProviderTest.java:50)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
      at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
      at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
      ... 23 more

       

      [INFO] Apache Johnzon ..................................... SUCCESS [ 8.651 s]
      [INFO] Johnzon :: Core .................................... SUCCESS [ 23.343 s]
      [INFO] Johnzon :: Mapper .................................. SUCCESS [ 26.557 s]
      [INFO] Johnzon :: JAX-RS .................................. FAILURE [ 3.369 s]

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            mdzaebel2 Marc Dzaebel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: