5 Replies Latest reply on Jun 7, 2011 5:20 AM by Denis Kniazhev

    Glassfish 3.1 remote and Arquillian 1.0.0.Alpha 5. Server is not running.

    Dimitrij Smelanskij Newbie

      When I try to run my simple test in glassfish 3.1 remote logs shows following exception

       

      28.03.2011 13:19:37 org.jboss.arquillian.impl.client.container.ContainerRegistryCreator getActivatedConfiguration

      INFO: Could not read active container configuration: null

      FAILED CONFIGURATION: @BeforeSuite arquillianBeforeSuite

      org.jboss.arquillian.spi.client.container.LifecycleException: Server is not running

       

      at org.jboss.arquillian.container.glassfish.remote_3_1.GlassFishRestDeployableContainer.start(GlassFishRestDeployableContainer.java:114)

      at org.jboss.arquillian.impl.client.container.ContainerLifecycleController$5.perform(ContainerLifecycleController.java:145)

      at org.jboss.arquillian.impl.client.container.ContainerLifecycleController$5.perform(ContainerLifecycleController.java:135)

      at org.jboss.arquillian.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleController.java:183)

      at org.jboss.arquillian.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleController.java:134)

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

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

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

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

      ...

       

      My setup:

      Fresh installed Glassfish 3.1 and Arquillian 1.0.0.Alpha 5

       

      test class:

       

      public class PropertyManagerTest extends Arquillian {

          @Deployment

          @TargetsContainer("glassfish")

          public static JavaArchive createTestArchive() {

              JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "test.jar");

              archive.addClass(PropertyManager.class).addClass(PropertyManagerTest.class);

              return archive;

          }

       

          @Test

          public void getProperty() {

              Assert.assertEquals(1, 1);

          }

      }

       

      arquillian.xml

       

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

      <arquillian xmlns="http://jboss.com/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

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

       

      <container qualifier="jbossas" default="false">

      <configuration>

      <property name="jbossHome">D:\jboss-5.1.0.GA_test</property>

      </configuration>

      </container>

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

      <configuration>

      <property name="remoteServerAdminPort">4848</property>

      <property name="remoteServerAddress">localhost</property>

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

      </configuration>

      </container>

      </arquillian>

       

      pom.xml

       

      <dependencies>

      <dependency>

      <groupId>javax.enterprise</groupId>

      <artifactId>cdi-api</artifactId>

      <version>1.0-SP1</version>

      </dependency>

      <dependency>

      <groupId>org.testng</groupId>

      <artifactId>testng</artifactId>

      <version>5.12.1</version>

      <scope>test</scope>

      </dependency>

      <dependency>

      <groupId>org.jboss.arquillian</groupId>

      <artifactId>arquillian-testng</artifactId>

      <version>1.0.0.Alpha5</version>

      <scope>test</scope>

      </dependency>

      </dependencies>

       

      ...

       

       

      <profile>

      <id>glassfish-embedded-3.1</id>

      <dependencies>

      <dependency>

      <groupId>org.jboss.arquillian.container</groupId>

      <artifactId>arquillian-glassfish-embedded-3.1</artifactId>

      <version>1.0.0.Alpha5</version>

      </dependency>

      <dependency>

      <groupId>org.glassfish.extras</groupId>

      <artifactId>glassfish-embedded-all</artifactId>

      <version>3.1</version>

      </dependency>

      </dependencies>

      </profile>