Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-11586

CNFE when using testdriver in ServerRunMode.EMBEDDED mode

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 10.1.5.Final, 11.0.0.Dev03
    • Fix Version/s: 11.0.0.Dev04, 10.1.6.Final
    • Component/s: None
    • Labels:
      None
    • Sprint:
      DataGrid Sprint #42
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Add the dependency explicitly:

            <dependency>
               <groupId>org.infinispan</groupId>
               <artifactId>infinispan-core</artifactId>
               <type>test-jar</type>
               <scope>compile</scope>
            </dependency>
      
      Show
      Add the dependency explicitly: <dependency> <groupId> org.infinispan </groupId> <artifactId> infinispan-core </artifactId> <type> test-jar </type> <scope> compile </scope> </dependency>

      Description

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 8.866 sec <<< FAILURE!
      org.infinispan.playground.server.testdriver.InfinispanServerTest  Time elapsed: 8.864 sec  <<< ERROR!
      java.lang.NoClassDefFoundError: org/infinispan/test/TestingUtil
      	at org.infinispan.server.test.core.EmbeddedInfinispanServerDriver.start(EmbeddedInfinispanServerDriver.java:69)
      	at org.infinispan.server.test.core.AbstractInfinispanServerDriver.start(AbstractInfinispanServerDriver.java:110)
      	at org.infinispan.server.test.junit4.InfinispanServerRule$1.evaluate(InfinispanServerRule.java:83)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
      	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
      	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
      Caused by: java.lang.ClassNotFoundException: org.infinispan.test.TestingUtil
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
      	... 17 more
      
      
      Results :
      
      Tests in error:
        org.infinispan.playground.server.testdriver.InfinispanServerTest: org/infinispan/test/TestingUtil
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rhusar Radoslav Husar
                Reporter:
                rhusar Radoslav Husar
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: