0 Replies Latest reply on Dec 21, 2010 2:59 PM by Martin Taal

    Getting java.lang.NoClassDefFoundError: org/jboss/weld/bootstrap/api/helpers/ForwardingLifecycle with Weld 1.1CR1

    Martin Taal Newbie

      Hi,

      I am getting a NoClasDefFoundError on the org/jboss/weld/bootstrap/api/helpers/ForwardingLifecycle class when using Arquillian combined with Weld 1.1CR1. I am using Arquiilian alpha4 and CDI api 1.0 SP3. See the stack trace below. Are these versions compatible (I should use a different version maybe?)?

       

       

      It seems related to this issue:

      https://issues.jboss.org/browse/ARQ-341

       

      In which the solution seemed to be to use CDI 1.0 SP2, but I am at SP3 and still get the issue.

       

      Do you know what I can do to solve it?

       

      Thanks!

       

      java.lang.NoClassDefFoundError: org/jboss/weld/bootstrap/api/helpers/ForwardingLifecycle
      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.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.<init>(TestContainer.java:214)
      at org.jboss.arquillian.container.weld.ee.embedded_1_1.WeldEEMockContainer.deploy(WeldEEMockContainer.java:76)
      at org.jboss.arquillian.impl.handler.ContainerDeployer.callback(ContainerDeployer.java:62)
      at org.jboss.arquillian.impl.handler.ContainerDeployer.callback(ContainerDeployer.java:50)
      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:96)
      at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:162)
      at org.jboss.arquillian.junit.Arquillian$3$1.evaluate(Arquillian.java:186)
      at org.jboss.arquillian.junit.Arquillian$MultiStatementExecutor.execute(Arquillian.java:297)
      at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:182)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:127)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      Caused by: java.lang.ClassNotFoundException: org.jboss.weld.bootstrap.api.helpers.ForwardingLifecycle
      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)
      ... 31 more

      java.lang.NoClassDefFoundError: org/jboss/weld/bootstrap/api/helpers/ForwardingLifecycle

      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.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.<init>(TestContainer.java:214)

      at org.jboss.arquillian.container.weld.ee.embedded_1_1.WeldEEMockContainer.deploy(WeldEEMockContainer.java:76)

      at org.jboss.arquillian.impl.handler.ContainerDeployer.callback(ContainerDeployer.java:62)

      at org.jboss.arquillian.impl.handler.ContainerDeployer.callback(ContainerDeployer.java:50)

      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:96)

      at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:162)

      at org.jboss.arquillian.junit.Arquillian$3$1.evaluate(Arquillian.java:186)

      at org.jboss.arquillian.junit.Arquillian$MultiStatementExecutor.execute(Arquillian.java:297)

      at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:182)

      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

      at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:127)

      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)

      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

      Caused by: java.lang.ClassNotFoundException: org.jboss.weld.bootstrap.api.helpers.ForwardingLifecycle

      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)

      ... 31 more