1 Reply Latest reply on Jun 12, 2011 10:46 AM by Aslak Knutsen

    seam 3 + maven 3 + arquillian

    Richard Mokua Newbie

      Hallo,

      Moved from seam 3 forums (http://seamframework.org/Community/Seam3Maven3) ;

      I have generated a project using the seam 3 archetype (http://seamframework.org/Documentation/CDIQuickstartForMavenUsers),

      the project deploys fine in jboss 6 Final but trying to run the arquillian test , it fails and the logs shows:

      Running com.mokua.iv.test.MemberRegistrationTest

      Jun 9, 2011 9:55:47 AM org.jboss.arquillian.impl.client.container.ContainerRegistryCreator getActivatedConfiguration

      INFO: Could not read active container configuration: null

      log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory).

       

      Running the same test on eclipse, i get the following stacktrace:

       

      MemberRegistrationTest

      com.mokua.iv.test.MemberRegistrationTest

      initializationError(com.mokua.iv.test.MemberRegistrationTest)

      java.lang.RuntimeException: Could not create and startup manager

          at org.jboss.arquillian.impl.core.ManagerImpl.<init>(ManagerImpl.java:95)

          at org.jboss.arquillian.impl.core.ManagerBuilder.create(ManagerBuilder.java:74)

          at org.jboss.arquillian.impl.DeployableTestBuilder.build(DeployableTestBuilder.java:97)

          at org.jboss.arquillian.impl.DeployableTestBuilder.build(DeployableTestBuilder.java:67)

          at org.jboss.arquillian.junit.Arquillian.<init>(Arquillian.java:82)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

          at java.lang.reflect.Constructor.newInstance(Unknown Source)

          at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)

          at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)

          at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)

          at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)

          at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)

          at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)

          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:32)

          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)

          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:41)

          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:31)

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

          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: org.jboss.arquillian.impl.domain.ContainerCreationException: Could not create Container jbossas-remote

          at org.jboss.arquillian.impl.domain.ContainerRegistry.create(ContainerRegistry.java:78)

          at org.jboss.arquillian.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:67)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          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.ManagerImpl.bindAndFire(ManagerImpl.java:221)

          at org.jboss.arquillian.impl.core.InstanceImpl.set(InstanceImpl.java:74)

          at org.jboss.arquillian.impl.bootstrap.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:58)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          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.ManagerImpl.<init>(ManagerImpl.java:91)

          ... 22 more

      Caused by: java.lang.IllegalStateException: No implementation found for org.jboss.arquillian.spi.client.container.DeployableContainer, please check your classpath

          at org.jboss.arquillian.impl.DynamicServiceLoader.verifyOnlyOneOrSameImplementation(DynamicServiceLoader.java:134)

          at org.jboss.arquillian.impl.DynamicServiceLoader.onlyOne(DynamicServiceLoader.java:92)

          at org.jboss.arquillian.impl.domain.ContainerRegistry.create(ContainerRegistry.java:69)

          ... 45 more

       

      I have attached my pom.xml and also arqullian.xml files.

      Any ideas will be appreciated.

      Regards

        • 1. Re: seam 3 + maven 3 + arquillian
          Aslak Knutsen Master

          Richard Mokua wrote:

           

          Running com.mokua.iv.test.MemberRegistrationTest

          Jun 9, 2011 9:55:47 AM org.jboss.arquillian.impl.client.container.ContainerRegistryCreator getActivatedConfiguration

          INFO: Could not read active container configuration: null

          log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory).

           

          This is not an error, but information (bad mind you), that you have not specified e.g. -Darquillian.launch=[container.qualifier] so it will use what it can find on ClassPath or the one marked as default in arquillian.xml.

           

           

          Richard Mokua wrote:

           

          Hallo,

           

          Running the same test on eclipse, i get the following stacktrace:

           

          MemberRegistrationTest

          com.mokua.iv.test.MemberRegistrationTest

          initializationError(com.mokua.iv.test.MemberRegistrationTest)

          java.lang.RuntimeException: Could not create and startup manager

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

              ... 22 more

          Caused by: java.lang.IllegalStateException: No implementation found for org.jboss.arquillian.spi.client.container.DeployableContainer, please check your classpath

              at org.jboss.arquillian.impl.DynamicServiceLoader.verifyOnlyOneOrSameImplementation(DynamicServiceLoader.java:134)

              at org.jboss.arquillian.impl.DynamicServiceLoader.onlyOne(DynamicServiceLoader.java:92)

              at org.jboss.arquillian.impl.domain.ContainerRegistry.create(ContainerRegistry.java:69)

              ... 45 more

           

           

          When your using Maven and Eclipse, youre probably using m2eclipse. You need to specify the Maven profile in Eclipse for it to find the correct dependecies.

           

          See https://docs.jboss.org/author/display/ARQ/Setting+up+and+running+the+test+in+Eclipse