2 Replies Latest reply on Oct 14, 2011 9:28 AM by Anita Andersen

    Arquillian test fails due to the message: Could not invoke deployment method: public static org.jboss.shrinkwrap.api.spec.JavaArchive com.amp.credit.ejb.business.CreditBusinessBeanTest.createTestArchive() in the arquillianBeforeClass()

    Anita Andersen Newbie

      Hi

       

      I am a newbe to the jboss community. Recently I am checking out Arquillian and I ran into a problem when trying to run a test with

      testNG and Jboss 6 final.

       

      Here is the test class file:

       

      package com.amp.credit.ejb.business;

       

      import com.amp.credit.business.CreditBusiness;

      import org.jboss.arquillian.api.Deployment;

      import org.jboss.arquillian.api.OperateOnDeployment;

      import org.jboss.arquillian.api.TargetsContainer;

      import org.jboss.arquillian.testng.Arquillian;

      import org.jboss.shrinkwrap.api.ShrinkWrap;

      import org.jboss.shrinkwrap.api.spec.JavaArchive;

      import org.testng.annotations.Test;

       

      import javax.ejb.EJB;

       

      public class CreditBusinessBeanTest extends Arquillian {

         @EJB

         private CreditBusiness creditBusiness;

       

         @Deployment (name = "dep1") @TargetsContainer("jbossas6Container")

         public static JavaArchive createTestArchive() {

            return ShrinkWrap.create(JavaArchive.class, "test.jar")

                  .addClasses(CreditBusiness.class, CreditBusinessBean.class);

         }

       

       

         @Test @OperateOnDeployment("dep1")

         public void shouldGetCredit() throws Exception {

            Credit credit = creditBusiness.getCredit(someId);

            Assert.assertEquals(credit.getId, someId);

            Assert.assertEquals(credit.getBalance(), 0);

       

         }

      }

       

      Here is the arquillian.xml file located under {module_home}/src/test/resources

       

      <?xml version="1.0"?>

      <arquillian xmlns="http://jboss.com/arquillian"

       

                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

       

                  xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

       

          <container qualifier="jbossas6Container" default="true">

       

              <configuration>

       

                  <property name="providerUrl">jnp://X.X.X.X:1099</property>

       

              </configuration>

       

              <protocol type="Servlet 3.0">

       

                  <configuration>

       

                      <property name="host">X.X.X.X</property>

       

                      <property name="port">8080</property>

       

                  </configuration>

       

              </protocol>

       

          </container>

       

      </arquillian>

       

      Here is the stacktrace from surefire reports:

       

      <testng-results>

        <reporter-output>

        </reporter-output>

        <suite name="Command line suite">

          <groups>

          </groups>

          <test name="Command line test">

            <class name="com.amp.credit.ejb.business.CreditBusinessBeanTest">

              <test-method status="PASS" signature="arquillianAfterSuite()" name="arquillianAfterSuite" is-config="true" duration-ms="6" started-at="2011-09-18T17:28:22Z" finished-at="2011-09-18T17:28:22Z">

              </test-method>

              <test-method status="FAIL" signature="arquillianAfterTest(java.lang.reflect.Method)" name="arquillianAfterTest" is-config="true" duration-ms="0" started-at="2011-09-18T17:28:22Z" finished-at="2011-09-18T17:28:22Z">

                <params>

                  <param index="0">

                    <value>

                      <![CDATA[public void com.amp.credit.ejb.business.CreditBusinessBeanTest.shouldGetCredit() throws java.lang.Exception]]>

                    </value>

                  </param>

                </params>

                <exception class="java.lang.NullPointerException">

                  <full-stacktrace>

                    <![CDATA[java.lang.NullPointerException

              at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.lookup(ContainerDeploymentContextHandler.java:155)

              at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createContext(ContainerDeploymentContextHandler.java:137)

              at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createAfterContext(ContainerDeploymentContextHandler.java:125)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

              at org.jboss.arquillian.impl.TestContextHandler.createTestContext(TestContextHandler.java:82)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

              at org.jboss.arquillian.impl.TestContextHandler.createClassContext(TestContextHandler.java:68)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

              at org.jboss.arquillian.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:54)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

              at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

              at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

              at org.jboss.arquillian.impl.EventTestRunnerAdaptor.after(EventTestRunnerAdaptor.java:93)

              at org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(Arquillian.java:94)

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

              at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)

              at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)

              at org.testng.internal.Invoker.invokeMethod(Invoker.java:531)

              at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:617)

              at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:885)

              at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)

              at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:110)

              at org.testng.TestRunner.runWorkers(TestRunner.java:712)

              at org.testng.TestRunner.privateRun(TestRunner.java:582)

              at org.testng.TestRunner.run(TestRunner.java:477)

              at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)

              at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)

              at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)

              at org.testng.SuiteRunner.run(SuiteRunner.java:198)

              at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)

              at org.testng.TestNG.runSuitesLocally(TestNG.java:790)

              at org.testng.TestNG.run(TestNG.java:708)

              at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70)

              at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:102)

              at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:114)

              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.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)

              at $Proxy0.invoke(Unknown Source)

              at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)

              at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)

              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

      ]]>

                  </full-stacktrace>

                </exception>

              </test-method>

              <test-method status="SKIP" signature="arquillianBeforeTest(java.lang.reflect.Method)" name="arquillianBeforeTest" is-config="true" duration-ms="0" started-at="2011-09-18T17:28:22Z" finished-at="2011-09-18T17:28:22Z">

              </test-method>

              <test-method status="PASS" signature="arquillianBeforeSuite()" name="arquillianBeforeSuite" is-config="true" duration-ms="950" started-at="2011-09-18T17:28:21Z" finished-at="2011-09-18T17:28:22Z">

              </test-method>

              <test-method status="FAIL" signature="arquillianAfterClass()" name="arquillianAfterClass" is-config="true" duration-ms="0" started-at="2011-09-18T17:28:22Z" finished-at="2011-09-18T17:28:22Z">

                <exception class="java.lang.NullPointerException">

                  <full-stacktrace>

                    <![CDATA[java.lang.NullPointerException

              at org.jboss.arquillian.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:204)

              at org.jboss.arquillian.impl.client.container.ContainerDeployController.undeployManaged(ContainerDeployController.java:99)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

              at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

              at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

              at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)

              at org.jboss.arquillian.impl.client.ContainerEventController.execute(ContainerEventController.java:74)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

              at org.jboss.arquillian.impl.TestContextHandler.createClassContext(TestContextHandler.java:68)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

              at org.jboss.arquillian.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:54)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

              at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

              at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

              at org.jboss.arquillian.impl.EventTestRunnerAdaptor.afterClass(EventTestRunnerAdaptor.java:77)

              at org.jboss.arquillian.testng.Arquillian.arquillianAfterClass(Arquillian.java:82)

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

              at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)

              at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)

              at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)

              at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:210)

              at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:113)

              at org.testng.TestRunner.runWorkers(TestRunner.java:712)

              at org.testng.TestRunner.privateRun(TestRunner.java:582)

              at org.testng.TestRunner.run(TestRunner.java:477)

              at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)

              at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)

              at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)

              at org.testng.SuiteRunner.run(SuiteRunner.java:198)

              at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)

              at org.testng.TestNG.runSuitesLocally(TestNG.java:790)

              at org.testng.TestNG.run(TestNG.java:708)

              at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70)

              at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:102)

              at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:114)

              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.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)

              at $Proxy0.invoke(Unknown Source)

              at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)

              at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)

              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

      ]]>

                  </full-stacktrace>

                </exception>

              </test-method>

              <test-method status="SKIP" signature="shouldGetCredit()" name="shouldGetCredit" duration-ms="0" started-at="2011-09-18T17:28:22Z" finished-at="2011-09-18T17:28:22Z">

              </test-method>

              <test-method status="FAIL" signature="arquillianBeforeClass()" name="arquillianBeforeClass" is-config="true" duration-ms="0" started-at="2011-09-18T17:28:22Z" finished-at="2011-09-18T17:28:22Z">

                <exception class="java.lang.RuntimeException">

                  <message>

                    <![CDATA[Could not invoke deployment method: public static org.jboss.shrinkwrap.api.spec.JavaArchive com.amp.credit.ejb.business.CreditBusinessBeanTest.createTestArchive()]]>

                  </message>

                  <full-stacktrace>

                    <![CDATA[java.lang.RuntimeException: Could not invoke deployment method: public static org.jboss.shrinkwrap.api.spec.JavaArchive com.amp.credit.ejb.business.CreditBusinessBeanTest.createTestArchive()

              at org.jboss.arquillian.impl.client.deployment.AnnotationDeploymentScenarioGenerator.invoke(AnnotationDeploymentScenarioGenerator.java:166)

              at org.jboss.arquillian.impl.client.deployment.AnnotationDeploymentScenarioGenerator.generateDeployment(AnnotationDeploymentScenarioGenerator.java:100)

              at org.jboss.arquillian.impl.client.deployment.AnnotationDeploymentScenarioGenerator.generate(AnnotationDeploymentScenarioGenerator.java:55)

              at org.jboss.arquillian.impl.client.deployment.DeploymentGenerator.generateDeployment(DeploymentGenerator.java:76)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

              at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

              at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

              at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)

              at org.jboss.arquillian.impl.client.ContainerEventController.execute(ContainerEventController.java:68)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

              at org.jboss.arquillian.impl.TestContextHandler.createClassContext(TestContextHandler.java:68)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

              at org.jboss.arquillian.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:54)

              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.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

              at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

              at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

              at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

              at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:70)

              at org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass(Arquillian.java:76)

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

              at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)

              at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)

              at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)

              at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:167)

              at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:104)

              at org.testng.TestRunner.runWorkers(TestRunner.java:712)

              at org.testng.TestRunner.privateRun(TestRunner.java:582)

              at org.testng.TestRunner.run(TestRunner.java:477)

              at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)

              at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)

              at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)

              at org.testng.SuiteRunner.run(SuiteRunner.java:198)

              at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)

              at org.testng.TestNG.runSuitesLocally(TestNG.java:790)

              at org.testng.TestNG.run(TestNG.java:708)

              at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70)

              at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:102)

              at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:114)

              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.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)

              at $Proxy0.invoke(Unknown Source)

              at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)

              at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)

              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

      Caused by: java.lang.reflect.InvocationTargetException

              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.jboss.arquillian.impl.client.deployment.AnnotationDeploymentScenarioGenerator.invoke(AnnotationDeploymentScenarioGenerator.java:162)

              ... 71 more

      Caused by: java.lang.ExceptionInInitializerError

              at org.jboss.shrinkwrap.api.ShrinkWrap.getDefaultDomain(ShrinkWrap.java:126)

              at org.jboss.shrinkwrap.api.ShrinkWrap.create(ShrinkWrap.java:187)

              at com.amp.credit.ejb.business.CreditBusinessBeanTest.createTestArchive(CreditBusinessBeanTest.java:27)

              ... 76 more

      Caused by: java.lang.RuntimeException: Could not create new instance of org.jboss.shrinkwrap.impl.base.ServiceExtensionLoader, missing package from classpath?

              at org.jboss.shrinkwrap.api.SecurityActions.newInstance(SecurityActions.java:143)

              at org.jboss.shrinkwrap.api.ConfigurationBuilder.createDefaultExtensionLoader(ConfigurationBuilder.java:171)

              at org.jboss.shrinkwrap.api.ConfigurationBuilder.setDefaults(ConfigurationBuilder.java:154)

              at org.jboss.shrinkwrap.api.ConfigurationBuilder.build(ConfigurationBuilder.java:135)

              at org.jboss.shrinkwrap.api.ShrinkWrap.createDomain(ShrinkWrap.java:93)

              at org.jboss.shrinkwrap.api.ShrinkWrap.createDomain(ShrinkWrap.java:71)

              at org.jboss.shrinkwrap.api.ShrinkWrap$DefaultDomainWrapper.&lt;init&gt;(ShrinkWrap.java:227)

              at org.jboss.shrinkwrap.api.ShrinkWrap$DefaultDomainWrapper.&lt;clinit&gt;(ShrinkWrap.java:222)

              ... 79 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.shrinkwrap.impl.base.ServiceExtensionLoader

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

              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

              at java.lang.Class.forName0(Native Method)

              at java.lang.Class.forName(Class.java:247)

              at org.jboss.shrinkwrap.api.SecurityActions.newInstance(SecurityActions.java:137)

              ... 86 more

      ]]>

                  </full-stacktrace>

                </exception>

              </test-method>

            </class>

          </test>

        </suite>

      </testng-results>

       

      I also get a warning when running the tests that the container is not active, the value is null. I browsed the arquillian source code and saw a getter on a property called aequillian.launch. Do I need to set this property when only launching one container by default? If so what should the value of the property key be? I cannot find any documentation of this property. Am I missing a class or jar? Is something misconfigured?

       

      I hope someone can help me with this, as I do not know have to fix this problem.

      Kind regards

      aniand