1 Reply Latest reply on Sep 29, 2012 9:47 PM by zeeman

    Arquillian test not working

    zeeman Novice

      Using Tomee, Seam 3.1, and Myfaces 2.1.8 with Tomee. I asked on Tomee forum and it seems like a dependecy issue. I tried with servlet protocol and still got the same error below.

       

      My Maven test profile:

      <tomee.version>1.1.1-SNAPSHOT</tomee.version>

      <profile>

                              <id>tomee</id>

                              <activation>

                                      <activeByDefault>false</activeByDefault>

                              </activation>

                              <build>

                                      <plugins>

                                              <plugin>

                                                      <artifactId>maven-surefire-plugin</artifactId>

                                                      <version>${surefire.plugin.version}</version>

                                                      <configuration>

                                                              <systemPropertyVariables>

                                                                      <tomee.classifier>webprofile</tomee.classifier>

                                                                      <tomee.version>${tomee.version}</tomee.version>

                                                              </systemPropertyVariables>

                                                              <skip>false</skip>

                                                      </configuration>

                                              </plugin>

                                      </plugins>

                              </build>

                              <dependencies>

                                      <dependency>

                                              <groupId>org.apache.openejb</groupId>

                                              <artifactId>arquillian-tomee-remote</artifactId>

                                              <version>${tomee.version}</version>

                                              <scope>test</scope>

                                      </dependency>

                              </dependencies>

                      </profile>

                      <profile>


      Arquillian.xml:


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

                      <configuration>

                              <property name="httpPort">9080</property>

                              <property name="stopPort">9005</property>

                              <property name="tomcatVersion"></property>

                              <property name="dir">target/apache-tomee</property>

                      </configuration>

              </container>



      How I package the test.war:


                      final WebArchive war = ShrinkWrap

                                      .create(WebArchive.class, "test.war")

                                      .setWebXML(new File("src/main/webapp/WEB-INF/web.xml"))

                                      .addPackages(true, "com.sportivity")

                                      .addPackages(true, "org.drools")

                                      .addAsResource("META-INF/persistence.xml", "META-INF/persistence.xml")

                                      .addAsResource("META-INF/resources.xml", "META-INF/resources.xml")

                                      .addAsResource("META-INF/application.properties", "META-INF/application.properties")

                                      .addAsResource("test-validation.xml", "META-INF/validation.xml")

                                      .addAsResource("import-test.sql", "import.sql")

                                      .addAsResource("messages.properties")

                                      .addAsWebInfResource(new File("src/main/webapp/WEB-INF/pretty-config.xml"))

                                      .addAsWebInfResource(new File("src/main/webapp/WEB-INF/beans.xml"), "beans.xml")

                                      .addAsWebInfResource(new File("src/main/webapp/WEB-INF/faces-config.xml"), "faces-config.xml")

                                      .addAsLibraries(

                                                      DependencyResolvers.use(MavenDependencyResolver.class).goOffline()

                                                                      .includeDependenciesFromPom("pom.xml")

                                                                      .artifact("org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:1.0.0-beta-7")

                                                                      .resolveAs(JavaArchive.class, new ScopeFilter("compile", "runtime", "test")));



      test.war:

      /WEB-INF/

      /WEB-INF/pretty-config.xml

      /WEB-INF/lib/

      /WEB-INF/lib/bcprov-jdk14-1.38.jar

      /WEB-INF/lib/bcmail-jdk14-1.38.jar

      /WEB-INF/lib/aether-impl-1.8.jar

      /WEB-INF/lib/shrinkwrap-resolver-api-maven-1.0.0-beta-7.jar

      /WEB-INF/lib/jboss-transaction-spi-6.0.0.CR1.jar

      /WEB-INF/lib/shrinkwrap-spi-1.0.1.jar

      /WEB-INF/lib/arquillian-config-impl-base-1.0.2.Final.jar

      /WEB-INF/lib/jboss-jaxws-api_2.2_spec-1.0.0.Final.jar

      /WEB-INF/lib/seam-transaction-3.1.0.Final.jar

      /WEB-INF/lib/poi-3.7.jar

      /WEB-INF/lib/bcmail-jdk14-138.jar

      /WEB-INF/lib/seam-persistence-3.1.0.Final.jar

      /WEB-INF/lib/filters-2.0.235.jar

      /WEB-INF/lib/picketlink-idm-core-1.5.0.Alpha02.jar

      /WEB-INF/lib/bcprov-jdk14-138.jar

      /WEB-INF/lib/h2-1.3.168.jar

      /WEB-INF/lib/xbean-reflect-3.4.jar

      /WEB-INF/lib/commons-email-1.2.jar

      /WEB-INF/lib/jboss-ejb-api_3.1_spec-1.0.0.Final.jar

      /WEB-INF/lib/xapool-1.5.0.jar

      /WEB-INF/lib/snappy-java-1.0.4.1.jar

      /WEB-INF/lib/ant-1.6.3.jar

      /WEB-INF/lib/plexus-interpolation-1.14.jar

      /WEB-INF/lib/shrinkwrap-descriptors-spi-2.0.0-alpha-3.jar

      /WEB-INF/lib/netty-3.2.1.Final.jar

      /WEB-INF/lib/aether-api-1.8.jar

      /WEB-INF/lib/hibernate-testing-4.1.5.Final.jar

      /WEB-INF/lib/jacorb-2.3.1jboss.patch01-brew.jar

      /WEB-INF/lib/joda-money-0.6.jar

      /WEB-INF/lib/picketlink-idm-spi-1.5.0.Alpha02.jar

      /WEB-INF/lib/arquillian-junit-container-1.0.2.Final.jar

      /WEB-INF/lib/google-collections-1.0.jar

      /WEB-INF/lib/solder-logging-3.1.0.Final.jar

      /WEB-INF/lib/jbossws-spi-2.0.0.Alpha2.jar

      /WEB-INF/lib/jnp-client-5.0.5.Final.jar

      /WEB-INF/lib/arquillian-junit-core-1.0.2.Final.jar

      /WEB-INF/lib/usertype.spi-3.0.0.CR3.jar

      /WEB-INF/lib/seam-faces-3.1.0.Final.jar

      /WEB-INF/lib/hornetq-core-2.1.2.Final.jar

      /WEB-INF/lib/jboss-logging-generator-1.0.0.Beta6.jar

      /WEB-INF/lib/arquillian-test-impl-base-1.0.2.Final.jar

      /WEB-INF/lib/jbossjta-4.15.1.Final.jar

      /WEB-INF/lib/emma_ant-2.0.5312.jar

      /WEB-INF/lib/plexus-classworlds-2.2.2.jar

      /WEB-INF/lib/aether-spi-1.8.jar

      /WEB-INF/lib/avro-1.6.3.jar

      /WEB-INF/lib/seam-security-3.1.0.Final.jar

      /WEB-INF/lib/maven-settings-builder-3.0.1.jar

      /WEB-INF/lib/maven-settings-3.0.1.jar

      /WEB-INF/lib/getopt-1.0.13.jar

      /WEB-INF/lib/arquillian-container-test-impl-base-1.0.2.Final.jar

      /WEB-INF/lib/plexus-sec-dispatcher-1.3.jar

      /WEB-INF/lib/arquillian-container-spi-1.0.2.Final.jar

      /WEB-INF/lib/arquillian-core-spi-1.0.2.Final.jar

      /WEB-INF/lib/arquillian-container-impl-base-1.0.2.Final.jar

      /WEB-INF/lib/prettyfaces-jsf2-3.3.3.jar

      /WEB-INF/lib/aether-util-1.8.jar

      /WEB-INF/lib/bctsp-jdk14-1.38.jar

      /WEB-INF/lib/jbosssx-client-3.0.0.CR2.jar

      /WEB-INF/lib/commons-io-1.4.jar

      /WEB-INF/lib/arquillian-container-test-spi-1.0.2.Final.jar

      /WEB-INF/lib/ironjacamar-spec-api-1.0.0.Beta5.jar

      /WEB-INF/lib/java-image-scaling-0.8.5.jar

      /WEB-INF/lib/maven-repository-metadata-3.0.1.jar

      /WEB-INF/lib/usertype.core-3.0.0.CR3.jar

      /WEB-INF/lib/aether-connector-wagon-1.8.jar

      /WEB-INF/lib/plexus-container-default-1.5.5.jar

      /WEB-INF/lib/plexus-component-annotations-1.5.5.jar

      /WEB-INF/lib/primefaces-3.4.jar

      /WEB-INF/lib/idl-2.3.1jboss.patch01-brew.jar

      /WEB-INF/lib/maven-aether-provider-3.0.1.jar

      /WEB-INF/lib/jboss-corba-ots-spi-6.0.0.CR1.jar

      /WEB-INF/lib/joda-time-2.1.jar

      /WEB-INF/lib/hibernate-search-engine-4.2.0.Beta1.jar

      /WEB-INF/lib/jackson-core-asl-1.8.8.jar

      /WEB-INF/lib/activation-1.1.jar

      /WEB-INF/lib/arquillian-core-impl-base-1.0.2.Final.jar

      /WEB-INF/lib/arquillian-test-spi-1.0.2.Final.jar

      /WEB-INF/lib/shrinkwrap-api-1.0.0-cr-1.jar

      /WEB-INF/lib/wagon-file-1.0-beta-7.jar

      /WEB-INF/lib/byteman-bmunit-1.5.2.jar

      /WEB-INF/lib/jbossws-common-2.0.0.Alpha3.jar

      /WEB-INF/lib/jboss-server-manager-1.0.4.Final.jar

      /WEB-INF/lib/seam-transaction-api-3.1.0.Final.jar

      /WEB-INF/lib/ant-launcher-1.7.1.jar

      /WEB-INF/lib/wagon-http-lightweight-1.0-beta-7.jar

      /WEB-INF/lib/byteman-install-1.5.2.jar

      /WEB-INF/lib/maven-model-builder-3.0.1.jar

      /WEB-INF/lib/jboss-security-spi-3.0.0.CR2.jar

      /WEB-INF/lib/jboss-servlet-api_3.0_spec-1.0.0.Final.jar

      /WEB-INF/lib/seam-international-3.1.0.Final.jar

      /WEB-INF/lib/jboss-transaction-api-1.0.1.GA.jar

      /WEB-INF/lib/plexus-cipher-1.4.jar

      /WEB-INF/lib/arquillian-config-api-1.0.2.Final.jar

      /WEB-INF/lib/itext-2.1.7.jar

      /WEB-INF/lib/arquillian-core-api-1.0.2.Final.jar

      /WEB-INF/lib/ui-lightness-1.0.2.jar

      /WEB-INF/lib/wrapper-3.2.3.jar

      /WEB-INF/lib/subethasmtp-3.1.3.jar

      /WEB-INF/lib/seam-international-api-3.1.0.Final.jar

      /WEB-INF/lib/commons-logging-api-1.1.jar

      /WEB-INF/lib/junit-4.10.jar

      /WEB-INF/lib/hibernate-search-orm-4.2.0.Beta1.jar

      /WEB-INF/lib/picketlink-idm-api-1.5.0.Alpha02.jar

      /WEB-INF/lib/jboss-logging-spi-2.2.0.CR1.jar

      /WEB-INF/lib/commons-logging-1.1.1.jar

      /WEB-INF/lib/hamcrest-core-1.1.jar

      /WEB-INF/lib/jaxrpc-api-1.1.jar

      /WEB-INF/lib/seam-security-api-3.1.0.Final.jar

      /WEB-INF/lib/scribe-1.3.1.jar

      /WEB-INF/lib/jackson-mapper-asl-1.8.8.jar

      /WEB-INF/lib/shrinkwrap-descriptors-api-base-2.0.0-alpha-3.jar

      /WEB-INF/lib/solder-api-3.1.0.Final.jar

      /WEB-INF/lib/shrinkwrap-resolver-api-1.0.0-beta-7.jar

      /WEB-INF/lib/byteman-1.5.2.jar

      /WEB-INF/lib/hibernate-search-4.2.0.Beta1.jar

      /WEB-INF/lib/commons-fileupload-1.2.2.jar

      /WEB-INF/lib/arquillian-test-api-1.0.2.Final.jar

      /WEB-INF/lib/shrinkwrap-impl-base-1.0.1.jar

      /WEB-INF/lib/solder-impl-3.1.0.Final.jar

      /WEB-INF/lib/lucene-analyzers-3.6.0.jar

      /WEB-INF/lib/seam-persistence-api-3.1.0.Final.jar

      /WEB-INF/lib/emma-2.0.5312.jar

      /WEB-INF/lib/jboss-logging-processor-1.0.0.Beta6.jar

      /WEB-INF/lib/jboss-common-core-2.2.10.GA.jar

      /WEB-INF/lib/seam-faces-api-3.1.0.Final.jar

      /WEB-INF/lib/wagon-http-shared-1.0-beta-7.jar

      /WEB-INF/lib/hibernate-search-analyzers-4.2.0.Beta1.jar

      /WEB-INF/lib/arquillian-container-test-api-1.0.2.Final.jar

      /WEB-INF/lib/paranamer-2.3.jar

      /WEB-INF/lib/jboss-remoting-2.5.3.jar

      /WEB-INF/lib/picketlink-idm-common-1.5.0.Alpha02.jar

      /WEB-INF/lib/lucene-core-3.6.0.jar

      /WEB-INF/lib/maven-model-3.0.1.jar

      /WEB-INF/lib/commons-httpclient-3.1-jbossorg-1.jar

      /WEB-INF/lib/freemarker-2.3.19.jar

      /WEB-INF/lib/plexus-utils-2.0.4.jar

      /WEB-INF/lib/ant-1.7.1.jar

      /WEB-INF/lib/wagon-provider-api-1.0-beta-7.jar

      /WEB-INF/lib/jbossws-api-1.0.0-SNAPSHOT.jar

      /WEB-INF/faces-config.xml

      /WEB-INF/beans.xml

      /WEB-INF/web.xml


      Test console stacktrace:

      Sep 27, 2012 12:27:44 AM org.apache.openejb.client.EventLogger log

      WARNING: RequestFailed{server=http://localhost:9080/tomee/ejb} JNDI_LOOKUPnull:/openejb/DeployerBusinessRemote {error=Cannot open input stream to server: }

      org.apache.openejb.client.ClientRuntimeException: Invalid response from server: -1

              at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:297)

              at javax.naming.InitialContext.lookup(Unknown Source)

              at org.apache.openejb.arquillian.common.TomEEContainer.lookupDeployerWithRetry(TomEEContainer.java:322)

              at org.apache.openejb.arquillian.common.TomEEContainer.lookupDeployerWithRetry(TomEEContainer.java:330)

              at org.apache.openejb.arquillian.common.TomEEContainer.lookupDeployerWithRetry(TomEEContainer.java:330)

              at org.apache.openejb.arquillian.common.TomEEContainer.lookupDeployerWithRetry(TomEEContainer.java:330)

              at org.apache.openejb.arquillian.common.TomEEContainer.lookupDeployerWithRetry(TomEEContainer.java:330)

              at org.apache.openejb.arquillian.common.TomEEContainer.deployer(TomEEContainer.java:314)

              at org.apache.tomee.arquillian.remote.RemoteTomEEContainer.deployer(RemoteTomEEContainer.java:147)

              at org.apache.openejb.arquillian.common.TomEEContainer.deploy(TomEEContainer.java:278)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)

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

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

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

              at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)

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

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

              at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

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

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

              at org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)

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

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

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

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

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

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:95)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:80)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263)

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

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:79)

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

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

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

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

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

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

              at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:101)

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

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

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

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

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

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

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

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

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

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

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

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

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

              at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

              at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

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

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

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

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

              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)



      jUnit stacktrace in Eclipse:


      org.jboss.arquillian.container.spi.client.container.DeploymentException: Unable to deploy

              at org.apache.openejb.arquillian.common.TomEEContainer.deploy(TomEEContainer.java:309)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)

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

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

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

              at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)

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

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

              at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

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

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

              at org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)

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

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

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

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

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

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:95)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:80)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263)

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

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:79)

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

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

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

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

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

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

              at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:101)

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

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

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

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

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

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

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

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

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

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

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

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

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

              at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

              at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

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

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

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

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

              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: org.apache.openejb.client.ClientRuntimeException: Invalid response from server: -1

              at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:297)

              at javax.naming.InitialContext.lookup(Unknown Source)

              at org.apache.openejb.arquillian.common.TomEEContainer.lookupDeployerWithRetry(TomEEContainer.java:322)

              at org.apache.openejb.arquillian.common.TomEEContainer.lookupDeployerWithRetry(TomEEContainer.java:330)

              at org.apache.openejb.arquillian.common.TomEEContainer.lookupDeployerWithRetry(TomEEContainer.java:330)

              at org.apache.openejb.arquillian.common.TomEEContainer.lookupDeployerWithRetry(TomEEContainer.java:330)

              at org.apache.openejb.arquillian.common.TomEEContainer.lookupDeployerWithRetry(TomEEContainer.java:330)

              at org.apache.openejb.arquillian.common.TomEEContainer.deployer(TomEEContainer.java:314)

              at org.apache.tomee.arquillian.remote.RemoteTomEEContainer.deployer(RemoteTomEEContainer.java:147)

              at org.apache.openejb.arquillian.common.TomEEContainer.deploy(TomEEContainer.java:278)

              ... 87 more

        • 1. Re: Arquillian test not working
          zeeman Novice

          I fixed dependecy issue (Shrink MavenResolver). Now I get this, any ideas with above config:

           

          Sep 29, 2012 5:41:29 PM org.apache.openejb.client.EventLogger log

          INFO: RemoteInitialContextCreated{providerUri=http://localhost:20002/tomee/ejb}

          Sep 29, 2012 5:41:30 PM org.apache.openejb.client.EventLogger log

          WARNING: ConnectionFailed{uri=http://localhost:20002/tomee/ejb cause=java.net.ConnectException: Connection refused: connect}

          Sep 29, 2012 5:41:30 PM org.apache.openejb.client.EventLogger log

          WARNING: BootstrappingConnection{provider=http://localhost:20002/tomee/ejb}

          Sep 29, 2012 5:41:31 PM org.apache.openejb.client.EventLogger log

          WARNING: ConnectionFailed{uri=http://localhost:20002/tomee/ejb cause=java.net.ConnectException: Connection refused: connect}

          Sep 29, 2012 5:41:31 PM org.apache.openejb.client.EventLogger log

          SEVERE: ConnectionStrategyFailed{strategy=StickyConnectionStrategy, cluster=org.apache.openejb.client.ClusterMetaData@706c08b2, server=http://localhost:20002/tomee/ejb}

          javax.naming.ServiceUnavailableException: Cannot lookup '/openejb/DeployerBusinessRemote'. [Root exception is java.net.ConnectException: Connection refused: connect]

                    at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:234)

                    at javax.naming.InitialContext.lookup(Unknown Source)

                    at org.apache.openejb.arquillian.common.TomEEContainer.lookupDeployerWithRetry(TomEEContainer.java:327)

                    at org.apache.openejb.arquillian.common.TomEEContainer.deployer(TomEEContainer.java:319)

                    at org.apache.tomee.arquillian.remote.RemoteTomEEContainer.deployer(RemoteTomEEContainer.java:166)

                    at org.apache.openejb.arquillian.common.TomEEContainer.deploy(TomEEContainer.java:283)

                    at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)

                    at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)

                    at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)

                    at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)

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

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

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

                    at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)

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

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

                    at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

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

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

                    at org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)

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

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

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

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

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

                    at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:95)

                    at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:80)

                    at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263)

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

                    at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:79)

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

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

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

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

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

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

                    at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:101)

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

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

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

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

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

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

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

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

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

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

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

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

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

                    at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                    at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

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

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

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

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

                    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.net.ConnectException: Connection refused: connect

                    at java.net.PlainSocketImpl.socketConnect(Native Method)

                    at java.net.PlainSocketImpl.doConnect(Unknown Source)

                    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)

                    at java.net.PlainSocketImpl.connect(Unknown Source)

                    at java.net.SocksSocketImpl.connect(Unknown Source)

                    at java.net.Socket.connect(Unknown Source)

                    at java.net.Socket.connect(Unknown Source)

                    at sun.net.NetworkClient.doConnect(Unknown Source)

                    at sun.net.www.http.HttpClient.openServer(Unknown Source)

                    at sun.net.www.http.HttpClient.openServer(Unknown Source)

                    at sun.net.www.http.HttpClient.<init>(Unknown Source)

                    at sun.net.www.http.HttpClient.New(Unknown Source)

                    at sun.net.www.http.HttpClient.New(Unknown Source)

                    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)

                    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)

                    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)

                    at org.apache.openejb.client.HttpConnectionFactory$HttpConnection.<init>(HttpConnectionFactory.java:67)

                    at org.apache.openejb.client.HttpConnectionFactory.getConnection(HttpConnectionFactory.java:35)

                    at org.apache.openejb.client.ConnectionManager.getConnection(ConnectionManager.java:101)

                    at org.apache.openejb.client.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:87)

                    at org.apache.openejb.client.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:68)

                    at org.apache.openejb.client.ConnectionManager.getConnection(ConnectionManager.java:79)

                    at org.apache.openejb.client.Client.processRequest(Client.java:137)

                    at org.apache.openejb.client.Client.request(Client.java:116)

                    at org.apache.openejb.client.JNDIContext.request(JNDIContext.java:83)

                    at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:230)

                    ... 92 more