Details

    • Type: Sub-task
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Running a jboss tck runner on an embedded container leads to following CNFE:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project weld-jboss-runner-tck: ExecutionException: java.lang.RuntimeException: There was an error in the forked process
      [ERROR] java.lang.NoClassDefFoundError: javax/xml/ws/Service
      [ERROR] at java.lang.ClassLoader.defineClass1(java.base@9-ea/Native Method)
      [ERROR] at java.lang.ClassLoader.defineClass(java.base@9-ea/ClassLoader.java:942)
      [ERROR] at java.security.SecureClassLoader.defineClass(java.base@9-ea/SecureClassLoader.java:152)
      [ERROR] at jdk.internal.loader.BuiltinClassLoader.defineClass(java.base@9-ea/BuiltinClassLoader.java:553)
      [ERROR] at jdk.internal.loader.BuiltinClassLoader.access$200(java.base@9-ea/BuiltinClassLoader.java:88)
      [ERROR] at jdk.internal.loader.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:466)
      [ERROR] at jdk.internal.loader.BuiltinClassLoader$3.run(java.base@9-ea/BuiltinClassLoader.java:460)
      [ERROR] at java.security.AccessController.doPrivileged(java.base@9-ea/Native Method)
      [ERROR] at jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(java.base@9-ea/BuiltinClassLoader.java:459)
      [ERROR] at jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(java.base@9-ea/BuiltinClassLoader.java:406)
      [ERROR] at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:364)
      [ERROR] at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:184)
      [ERROR] at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:419)
      [ERROR] at org.testng.internal.ClassHelper.forName(ClassHelper.java:96)
      [ERROR] at org.testng.xml.XmlClass.loadClass(XmlClass.java:78)
      [ERROR] at org.testng.xml.XmlClass.getSupportClass(XmlClass.java:89)
      [ERROR] at org.testng.internal.ClassInfoMap.<init>(ClassInfoMap.java:25)
      [ERROR] at org.testng.internal.ClassInfoMap.<init>(ClassInfoMap.java:18)
      [ERROR] at org.testng.TestRunner.initMethods(TestRunner.java:408)
      [ERROR] at org.testng.TestRunner.init(TestRunner.java:235)
      [ERROR] at org.testng.TestRunner.init(TestRunner.java:205)
      [ERROR] at org.testng.TestRunner.<init>(TestRunner.java:153)
      [ERROR] at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:536)
      [ERROR] at org.testng.SuiteRunner.init(SuiteRunner.java:159)
      [ERROR] at org.testng.SuiteRunner.<init>(SuiteRunner.java:113)
      [ERROR] at org.testng.TestNG.createSuiteRunner(TestNG.java:1299)
      [ERROR] at org.testng.TestNG.createSuiteRunners(TestNG.java:1286)
      [ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
      [ERROR] at org.testng.TestNG.run(TestNG.java:1057)
      [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:293)
      [ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
      [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:91)
      [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      [ERROR] Caused by: java.lang.ClassNotFoundException: javax.xml.ws.Service
      [ERROR] at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:366)
      [ERROR] at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:184)
      [ERROR] at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:419)
      [ERROR] ... 35 more
      [ERROR] -> [Help 1]
      

      Adding the following dependency resolves the problem:

      <dependency>
              <groupId>javax.xml.ws</groupId>
              <artifactId>jaxws-api</artifactId>
              <version>2.2.11</version>
      </dependency>
      

      This might be yet another issue related to JDK 9 modularity.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manovotn Matěj Novotný
                Reporter:
                manovotn Matěj Novotný
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: