6 Replies Latest reply on Jul 5, 2010 8:29 AM by Nicolas Feybesse

    Problem with Arquillian, TestNG in Eclipse

    Nicolas Feybesse Newbie

      Hi,

       

      I have a problem I don't understand in Eclipse when I launch an arquillian test.

      The test is ok when it is launched with Maven, but not in Eclipse.

       

      Stacktrace :

       

      java.lang.NoClassDefFoundError: org/eclipse/debug/core/ILaunchListener
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
          at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
          at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
          at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
          at org.jboss.shrinkwrap.impl.base.container.ContainerBase$2.classFound(ContainerBase.java:932)
          at org.jboss.shrinkwrap.impl.base.URLPackageScanner.foundClass(URLPackageScanner.java:178)
          at org.jboss.shrinkwrap.impl.base.URLPackageScanner.handleArchiveByFile(URLPackageScanner.java:134)
          at org.jboss.shrinkwrap.impl.base.URLPackageScanner.handle(URLPackageScanner.java:156)
          at org.jboss.shrinkwrap.impl.base.URLPackageScanner.scanPackage(URLPackageScanner.java:107)
          at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addPackages(ContainerBase.java:917)
          at org.jboss.arquillian.testng.TestNGDeploymentAppender.createAuxiliaryArchive(TestNGDeploymentAppender.java:40)
          at org.jboss.arquillian.impl.ClientDeploymentGenerator.loadAuxiliaryArchives(ClientDeploymentGenerator.java:74)
          at org.jboss.arquillian.impl.ClientDeploymentGenerator.generate(ClientDeploymentGenerator.java:61)
          at org.jboss.arquillian.impl.handler.ArchiveGenerator.callback(ArchiveGenerator.java:52)
          at org.jboss.arquillian.impl.handler.ArchiveGenerator.callback(ArchiveGenerator.java:42)
          at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)
          at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)
          at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:78)
          at org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass(Arquillian.java:75)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:643)
          at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:446)
          at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:162)
          at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:92)
          at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:183)
          at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
          at org.testng.TestRunner.runWorkers(TestRunner.java:953)
          at org.testng.TestRunner.privateRun(TestRunner.java:633)
          at org.testng.TestRunner.run(TestRunner.java:505)
          at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
          at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
          at org.testng.SuiteRunner.privateRun(SuiteRunner.java:316)
          at org.testng.SuiteRunner.run(SuiteRunner.java:195)
          at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:903)
          at org.testng.TestNG.runSuitesLocally(TestNG.java:872)
          at org.testng.TestNG.run(TestNG.java:780)
          at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:75)
          at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:127)
      Caused by: java.lang.ClassNotFoundException: org.eclipse.debug.core.ILaunchListener
          at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
          ... 49 more

       

       

      Could someone help me  ?

      Thanks in advance

       

      NF