11 Replies Latest reply on Sep 21, 2010 1:18 AM by sreekanth manga

    run tests using remote glassfish profile

    sreekanth manga Newbie

      Hi,

       

      I am still learning  Maven ,arquillian and Weld.All these technologies are new to me.I may need some more time to digest the arquillian reference guide as well.So please excuse me if I am asking any stupid questions

       

      Here what I am trying to do is to get arquillian to use remote glassfish server to deploy and test the apps.I am using the basic examples from the arquillian reference.I have the following questions in mind.

       

      1. Is it possible to have glassfishv3 running on a different macine and execute the tests from another machine?
      2. Do we need to have arquillian.xml file with remote glassfish/jboss profile ?
      3. Do we need to have arquillian.xml file with local glassfish/jboss profile ?

       

      I am using the following configurations.Please let me know if I am wrong some where.

       

      In pom.xml [Profile section]

       

      <profile>
                  <id>glassfish-remote-3</id>
                  <dependencies>
                      <dependency>
                          <groupId>org.jboss.arquillian.container</groupId>
                          <artifactId>arquillian-glassfish-remote-3</artifactId>
                          <version>${project.version}</version>
                          <scope>test</scope>
                      </dependency>
                      <dependency>
                          <groupId>org.glassfish.deployment</groupId>
                          <artifactId>deployment-client</artifactId>
                          <version>${version.glassfish_30}</version>
                          <scope>test</scope>
                      </dependency>
                      <dependency>
                          <groupId>org.glassfish.extras</groupId>
                          <artifactId>glassfish-embedded-all</artifactId>
                          <version>${version.glassfish_30}</version>
                      </dependency>
                  </dependencies>
              </profile>

       

      arquillian.xml

      ==========

       

      <arquillian xmlns="http://jboss.com/arquillian"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:glassfish="arq:org.jboss.arquillian.container.glassfish.remote_3">
          <glassfish:container>
              <glassfish:remoteServerAddress>129.158.239.60</glassfish:remoteServerAddress>
              <glassfish:remoteServerHttpPort>8080</glassfish:remoteServerHttpPort>
              <glassfish:deploymentUri>deployer:Sun:AppServer:129.158.239.60:4848</glassfish:deploymentUri>
              <glassfish:deploymentUsername>admin</glassfish:deploymentUsername>
              <glassfish:deploymentPassword></glassfish:deploymentPassword>
              <glassfish:deploymentTimeoutSeconds>10</glassfish:deploymentTimeoutSeconds>
          </glassfish:container>
          </arquillian>

       

       

      jndi.properties

      ==========

       

      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
      java.naming.provider.url=jnp://129.158.239.60:1099

       

      Thanks in advance.

       

      -Sree

        • 1. Re: run tests using remote glassfish profile
          Michael Schuetz Novice

          Hi Sreekanth,

           

          quite ambitious - that's good.

           

          Anyway, i recommend going one step back and start with a really simple example:

           

          http://github.com/arquillian/arquillian-examples/tree/master/ejb31-gfembedded/

           

          What do we have here?

          - simple arquillian test running against Glassfish Embedded 3

          - arquillian starts and stops container

          - no container needs to be downloaded, manually

          - testing EJB3.1 with nointerface-view

          - no arquillian.xml configuration is required

           

          After this is clear why not extend this example to use CDI?

           

          Finally, switching to different container should be easy than.

           

           

          Regards

          Michael

          • 2. Re: run tests using remote glassfish profile
            sreekanth manga Newbie

            Yeah I did that.I ran the sample against all embedded glassfish,remote glassfish on a local machine, Managed Jboss and remote JBoss.All seems to work.But I see some how running with glassfish remote profile with glassfish server running on a different macine doesnt seem to work.

             

            This is what TestSuite.txt says;

             

            -------------------------------------------------------------------------------

            Test set: TestSuite

            -------------------------------------------------------------------------------

            Tests run: 42, Failures: 17, Errors: 0, Skipped: 25, Time elapsed: 9.852 sec <<< FAILURE!

            shouldSetInputText(com.acme.cdi.translate.TranslateTestCase)  Time elapsed: 0.031 sec  <<< FAILURE!

            org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: Error launching test com.acme.cdi.translate.TranslateTestCase public void com.acme.cdi.translate.TranslateTestCase.shouldSetInputText() throws java.lang.Exception

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

                at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)

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

                at org.jboss.arquillian.testng.Arquillian.run(Arquillian.java:103)

                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.invokeHookable(MethodHelper.java:769)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            Caused by: java.lang.IllegalStateException: Error launching test com.acme.cdi.translate.TranslateTestCase public void com.acme.cdi.translate.TranslateTestCase.shouldSetInputText() throws java.lang.Exception

                at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:61)

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

                at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:40)

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

                ... 32 more

            Caused by: java.lang.IllegalStateException: Error launching test at http://localhost:8080/test/ArquillianServletRunner?outputMode=serializedObject&className=com.acme.cdi.translate.TranslateTestCase&methodName=shouldSetInputText. Got 500 (Internal Server Error)

                at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.execute(ServletMethodExecutor.java:103)

                at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:57)

                ... 35 more

             

            arquillianAfterClass(com.acme.cdi.translate.TranslateTestCase)  Time elapsed: 0.093 sec  <<< FAILURE!

            org.jboss.arquillian.impl.event.FiredEventException: org.jboss.arquillian.spi.DeploymentException: Could not undeploy module

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

                at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            Caused by: org.jboss.arquillian.spi.DeploymentException: Could not undeploy module

                at org.jboss.arquillian.container.jsr88.remote_1_2.JSR88RemoteContainer.undeploy(JSR88RemoteContainer.java:221)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:61)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:47)

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

                ... 32 more

            Caused by: javax.enterprise.deploy.spi.exceptions.TargetException: Error getting required modules

                at org.glassfish.deployapi.SunDeploymentManager.getModules(SunDeploymentManager.java:309)

                at org.glassfish.deployapi.SunDeploymentManager.getAvailableModules(SunDeploymentManager.java:249)

                at org.jboss.arquillian.container.jsr88.remote_1_2.JSR88RemoteContainer.undeploy(JSR88RemoteContainer.java:194)

                ... 35 more

            Caused by: java.lang.RuntimeException: error submitting remote command

                at org.glassfish.deployment.client.AbstractDeploymentFacility.listAppRefs(AbstractDeploymentFacility.java:829)

                at org.glassfish.deployapi.SunDeploymentManager.getModules(SunDeploymentManager.java:298)

                ... 37 more

            Caused by: java.lang.RuntimeException: com.sun.enterprise.admin.cli.CommandException: CLI001 Invalid Command: list-app-refs

                at org.glassfish.deployment.client.RemoteDeploymentFacility$RemoteCommandRunner.run(RemoteDeploymentFacility.java:138)

                at org.glassfish.deployment.client.AbstractDeploymentFacility.listAppRefs(AbstractDeploymentFacility.java:776)

                ... 38 more

            Caused by: com.sun.enterprise.admin.cli.CommandException: CLI001 Invalid Command: list-app-refs

                at com.sun.enterprise.admin.cli.remote.RemoteCommand.prepare(RemoteCommand.java:225)

                at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:244)

                at org.glassfish.deployment.client.RemoteDeploymentFacility$RemoteCommandRunner.run(RemoteDeploymentFacility.java:134)

                ... 39 more

            Caused by: com.sun.enterprise.admin.cli.InvalidCommandException:

                ... 42 more

             

            arquillianAfterClass(com.acme.cdi.InjectionTestCase)  Time elapsed: 0.003 sec  <<< FAILURE!

            org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

                at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            Caused by: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.Validate.stateNotNull(Validate.java:75)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:58)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:47)

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

                ... 32 more

             

            arquillianAfterClass(com.acme.cdi.random.RandomTestCase)  Time elapsed: 0.003 sec  <<< FAILURE!

            org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

                at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            Caused by: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.Validate.stateNotNull(Validate.java:75)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:58)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:47)

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

                ... 32 more

             

            arquillianAfterTest(com.acme.ejb.InjectionTestCase)  Time elapsed: 0.002 sec  <<< FAILURE!

            java.util.EmptyStackException

                at java.util.Stack.peek(Stack.java:85)

                at java.util.Stack.pop(Stack.java:67)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

             

            arquillianAfterClass(com.acme.ejb.InjectionTestCase)  Time elapsed: 0.009 sec  <<< FAILURE!

            org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

                at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            Caused by: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.Validate.stateNotNull(Validate.java:75)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:58)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:47)

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

                ... 32 more

             

            arquillianAfterTest(com.acme.ejb.TemperatureConverterTestCase)  Time elapsed: 0.002 sec  <<< FAILURE!

            java.util.EmptyStackException

                at java.util.Stack.peek(Stack.java:85)

                at java.util.Stack.pop(Stack.java:67)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

             

            arquillianAfterTest(com.acme.ejb.TemperatureConverterTestCase)  Time elapsed: 0.001 sec  <<< FAILURE!

            java.util.EmptyStackException

                at java.util.Stack.peek(Stack.java:85)

                at java.util.Stack.pop(Stack.java:67)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

             

            arquillianAfterTest(com.acme.ejb.TemperatureConverterTestCase)  Time elapsed: 0.002 sec  <<< FAILURE!

            java.util.EmptyStackException

                at java.util.Stack.peek(Stack.java:85)

                at java.util.Stack.pop(Stack.java:67)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

             

            arquillianAfterClass(com.acme.ejb.TemperatureConverterTestCase)  Time elapsed: 0.004 sec  <<< FAILURE!

            org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

                at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            Caused by: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.Validate.stateNotNull(Validate.java:75)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:58)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:47)

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

                ... 32 more

             

            arquillianAfterTest(com.acme.jms.InjectionTestCase)  Time elapsed: 0.002 sec  <<< FAILURE!

            java.util.EmptyStackException

                at java.util.Stack.peek(Stack.java:85)

                at java.util.Stack.pop(Stack.java:67)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

             

            arquillianAfterClass(com.acme.jms.InjectionTestCase)  Time elapsed: 0.004 sec  <<< FAILURE!

            org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

                at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            Caused by: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.Validate.stateNotNull(Validate.java:75)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:58)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:47)

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

                ... 32 more

             

            arquillianAfterTest(com.acme.resource.InjectionTestCase)  Time elapsed: 0.002 sec  <<< FAILURE!

            java.util.EmptyStackException

                at java.util.Stack.peek(Stack.java:85)

                at java.util.Stack.pop(Stack.java:67)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

             

            arquillianAfterClass(com.acme.resource.InjectionTestCase)  Time elapsed: 0.004 sec  <<< FAILURE!

            org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

                at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            Caused by: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.Validate.stateNotNull(Validate.java:75)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:58)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:47)

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

                ... 32 more

             

            shouldBeReplacedByAMock(com.acme.cdi.payment.SynchronousPaymentProcessorTestCase)  Time elapsed: 0.009 sec  <<< FAILURE!

            org.testng.TestNGException: java.lang.reflect.InvocationTargetException

                at org.testng.internal.MethodHelper.invokeDataProvider(MethodHelper.java:712)

                at org.testng.internal.Parameters.handleParameters(Parameters.java:383)

                at org.testng.internal.Invoker.handleParameters(Invoker.java:1161)

                at org.testng.internal.Invoker.createParameters(Invoker.java:895)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:643)

                at org.testng.internal.MethodHelper.invokeDataProvider(MethodHelper.java:695)

                ... 25 more

            Caused by: java.util.EmptyStackException

                at java.util.Stack.peek(Stack.java:85)

                at org.jboss.arquillian.impl.EventTestRunnerAdaptor.getActiveContext(EventTestRunnerAdaptor.java:56)

                at org.jboss.arquillian.testng.Arquillian.arquillianArgumentProvider(Arquillian.java:164)

                ... 31 more

             

            arquillianAfterClass(com.acme.cdi.payment.SynchronousPaymentProcessorTestCase)  Time elapsed: 0.011 sec  <<< FAILURE!

            org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

                at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            Caused by: java.lang.IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context

                at org.jboss.arquillian.impl.Validate.stateNotNull(Validate.java:75)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:58)

                at org.jboss.arquillian.impl.handler.ContainerUndeployer.callback(ContainerUndeployer.java:47)

                at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

                ... 32 more

             

            arquillianAfterSuite(com.acme.cdi.payment.SynchronousPaymentProcessorTestCase)  Time elapsed: 0.101 sec  <<< FAILURE!

            java.util.EmptyStackException

                at java.util.Stack.peek(Stack.java:85)

                at java.util.Stack.pop(Stack.java:67)

                at org.jboss.arquillian.impl.EventTestRunnerAdaptor.afterSuite(EventTestRunnerAdaptor.java:69)

                at org.jboss.arquillian.testng.Arquillian.arquillianAfterSuite(Arquillian.java:70)

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

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

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

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

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

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

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

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

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

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

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

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            • 3. Re: run tests using remote glassfish profile
              Aslak Knutsen Master

              It seems to be failing when executing the test case in the remote container, it's getting a 500 response from the server.

               

              Can you see any related exceptions in the server log?

               

              -aslak-

              • 4. Re: run tests using remote glassfish profile
                sreekanth manga Newbie

                 

                I have these in my mind.

                 

                1) I see this in the exception I sent:

                 

                Caused by: java.lang.IllegalStateException: Error launching test at http://localhost:8080/test/ArquillianServletRunner?outputMode=serializedObject&className=com.acme.cdi.translate.TranslateTestCase&methodName=shouldSetInputText. Got 500 (Internal Server Error)

                    at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.execute(ServletMethodExecutor.java:103)

                    at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:57)

                    ... 35 more

                 

                 

                Why is the framework launching the test with localhost as host name inspite  of configuring the tests to be deployed at a remote machine?.

                 

                 

                2)In the test suite, when I ran the tests with glassfish remote profile, the framework is trying to deploy different modules with same module name "test" and glassfish throws exception saying module can not be deployed since already a module exists with the same name in the virtual server.

                • 5. Re: run tests using remote glassfish profile
                  Aslak Knutsen Master

                  For GlassFish 3 Remote, you have to specify the remoteServerHttpPort and remoteServerAddress in your arquillian.xml. They default to localhost:8080.

                   

                  http://docs.jboss.org/arquillian/reference/latest/en-US/html_single/#container.glassfish-remote-3

                   

                  It's a Arquillian limitation at the moment that we need to deploy things as named "test" to find it. Currently we don't have any proper communication/introspection with the Container to know what is being deployed.

                   

                  Which v. of GlassFish are you using?

                   

                  Deploying the same named application over and over should not be a issue since we're undeploying them in between. If your seeing a error similar to:

                   

                   

                  java.lang.Exception: WEB0113: Virtual server [server] already has a web module 
                  [test] loaded at [/test]; therefore web module [test] cannot be loaded at this 

                   

                  You might have ran into the same issue I found for Embedded Glassfish. I think any v. > 3.1-b10 has this issue.

                  https://glassfish.dev.java.net/issues/show_bug.cgi?id=13017

                   

                  If you are seeing the same with a Remote server, you might want to comment on the GlassFish issue.

                  • 6. Re: run tests using remote glassfish profile
                    sreekanth manga Newbie

                    Hi ,

                     

                     

                    For GlassFish 3 Remote, you have to specify the remoteServerHttpPort and remoteServerAddress in your arquillian.xml. They default to localhost:8080.

                     

                    As I said at the starting of the thread, I changed the host name.Please see the initial thread.Still the framework uses local host.I guess there is a small bug.I dont know correctly.

                     

                    Which v. of GlassFish are you using?

                     

                    I am using glassfish v3 - stand alone version.

                     

                    If your seeing a error similar to:

                     

                    Yes, The exception I was talking about is the same one.I updated the glassfish bug  13017 with my comments.I didnt notice that the framework is trying to undeploy in the glassfish server log  files.Let me check it once again and get back to you tomorrow.

                    • 7. Re: run tests using remote glassfish profile
                      Aslak Knutsen Master

                      Ran through your setup now and found a couple of issues..

                       

                      The Configuration namespace your using is wrong. It should be:

                      urn:arq:org.jboss.arquillian.container.glassfish.remote_3

                       

                      The deploymentUri your using is in the wrong format: ( double :: before IP )

                      deployer:Sun:AppServer::129.158.239.60:4848

                       

                      Trying to sett a empty deploymentPassword will fail, just exclude the option if you don't have a password set.

                       

                      After fixing those GlassFish Remote seems to work just fine here..

                      • 8. Re: run tests using remote glassfish profile
                        Dan Allen Master

                        Yeah, the configuration is a bit weird in that setting the remoteServerAddress and remoteServerHttpPort does not update the deploymentUri. For now, you have to set the remote host in twice places.

                         

                        Here's the arquillian.xml that works for me, assuming the remote host is 192.168.1.2 and GlassFish is running on the default ports.

                         

                        <?xml version="1.0" encoding="UTF-8"?>
                        <arquillian xmlns="http://jboss.com/arquillian"
                           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                           xmlns:glassfish-remote="urn:arq:org.jboss.arquillian.container.glassfish.remote_3">
                        
                           <glassfish-remote:container>
                              <glassfish-remote:deploymentUri>deployer:Sun:AppServer::192.168.1.2:4848</glassfish-remote:deploymentUri>
                              <glassfish-remote:remoteServerAddress>192.168.1.2</glassfish-remote:remoteServerAddress>
                              <glassfish-remote:remoteServerHttpPort>8080</glassfish-remote:remoteServerHttpPort>
                           </glassfish-remote:container>
                        
                        </arquillian>
                        

                         

                        <?xml version="1.0" encoding="UTF-8"?>

                         

                        <arquillian xmlns="http://jboss.com/arquillia
                           xmlns:glassfish-remote="urn:arq:org.jboss.arquillian.container.glassfish.remote_3">
                           <glassfish-remote:container>
                              <glassfish-remote:deploymentUri>deployer:Sun:AppServer::192.168.1.2:4848</glassfish-remote:deploymentUri>
                              <glassfish-remote:remoteServerAddress>192.168.1.2</glassfish-remote:remoteServerAddress>
                              <glassfish-remote:remoteServerHttpPort>8080</glassfish-remote:remoteServerHttpPort>
                           </glassfish-remote:container>
                        </arquillian>
                        • 9. Re: run tests using remote glassfish profile
                          sreekanth manga Newbie

                          Thanks Aslak and Dan.Small mistakes I didn't notice :-)

                          • 10. Re: run tests using remote glassfish profile
                            Dan Allen Master

                            Glad to help. I also add https://jira.jboss.org/browse/ARQ-269 to make the configuration of a remote host a bit simpler. No reason we have to expose the deploymentUri when really all is needed is the remote host and maybe the remote admin port.

                            • 11. Re: run tests using remote glassfish profile
                              sreekanth manga Newbie

                              I tried running a sample application using JSR-88 deployment and I see deploy and undeploy works fine against a standalone glassfish server.So in the glassfish bug 13017 I think, my comments regarding the standalone server seems to be invalid.

                               

                              I guess either we are not undeploying the applications as we run the tests in arquillian or for time being somehow if we send force=true argument while deploying, the appserver will allow us to deploy the app.Anyway I will run the CDI tests again with standalone server and see how they are now.