5 Replies Latest reply on Oct 14, 2010 2:00 PM by Csaba Szucs

    Arquillian JUnit demo test fails with JBoss5.1 remote container

    Csaba Szucs Newbie

      Hello Guys,

       

      I would like to try the demo Arquillian test (TemperatureConverterTest) but it fails with the JUnit failure trace below.

       

      Could you help me to resolve the problem?

      Many thanks in advance!

       

      Regards,

      Csaba

       

       

      My environment is:

       

      Eclipse IDE 3.6.1

      JUnit 4.8.1

      JBoss 5.1.0 running on my localhost outside of Eclipe IDE (remote container)

       

       

      I am using the following jndi.properties on the classpath:

       

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory

      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

      java.naming.provider.url=jnp://localhost:1099

       

       

      And these are the jars on my project build path:

       

      arquillian-api-1.0.0.Alpha4.jar

      arquillian-impl-base-1.0.0.Alpha4.jar

      arquillian-jbossas-remote-5.1-1.0.0.Alpha4.SP1.jar

      arquillian-junit-1.0.0.Alpha4.jar

      arquillian-packager-applicationarchive-1.0.0.Alpha2.jar

      arquillian-packager-javaee-1.0.0.Alpha2.jar

      arquillian-spi-1.0.0.Alpha4.jar

      arquillian-testenricher-ejb-1.0.0.Alpha4.SP1.jar

      arquillian-testenricher-resource-1.0.0.Alpha4.SP1.jar

      shrinkwrap-api-1.0.0-alpha-10.jar

      shrinkwrap-impl-base-1.0.0-alpha-10.jar

      shrinkwrap-spi-1.0.0-alpha-10.jar

       

       

      JUnit failure trace:

       

      java.lang.AbstractMethodError: org.jboss.arquillian.packager.javaee.EEDeploymentPackager.generateDeployment(Lorg/jboss/arquillian/spi/TestDeployment;)Lorg/jboss/shrinkwrap/api/Archive;

          at org.jboss.arquillian.impl.ClientDeploymentGenerator.generate(ClientDeploymentGenerator.java:65)

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

          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)