1 Reply Latest reply on Jun 12, 2011 11:02 AM by Aslak Knutsen

    Could not start remote container exception, jbossas-managed-6

    Juraj Húska Master

      Hi,

      I am trying to run some AjaxSelenium tests on *jbossas-managed-6* with use of Arquillian and I am getting this error:

       

      FAILED CONFIGURATION: @BeforeSuite arquillianBeforeSuite

      org.jboss.arquillian.spi.client.container.LifecycleException: Could not start remote container

          at org.jboss.arquillian.container.jbossas.managed_6.JBossASLocalContainer.start(JBossASLocalContainer.java:105)

          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)

          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.proceed(EventContextImpl.java:87)

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

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

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

          at org.jboss.arquillian.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleController.java:83)

          at org.jboss.arquillian.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleController.java:76)

          at org.jboss.arquillian.impl.client.container.ContainerLifecycleController.forEachContainer(ContainerLifecycleController.java:176)

          at org.jboss.arquillian.impl.client.container.ContainerLifecycleController.startContainers(ContainerLifecycleController.java:75)

          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.core.ManagerImpl.fire(ManagerImpl.java:126)

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

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

          at org.jboss.arquillian.impl.client.ContainerEventController.execute(ContainerEventController.java:55)

          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.TestContextHandler.createSuiteContext(TestContextHandler.java:54)

          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.proceed(EventContextImpl.java:87)

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

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

          at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:58)

          at org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite(Arquillian.java:55)

          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.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:76)

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

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

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

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

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

          at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

          at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

          at org.testng.TestNG.runSuitesSequentially(TestNG.java:1039)

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

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

          at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:110)

          at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)

          at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:174)

      Caused by: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.aspects.security.SecurityClientInterceptor (no security manager: RMI class loader disabled)]

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:847)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

          at org.jboss.arquillian.container.jbossas.managed_6.JBossASLocalContainer.initProfileService(JBossASLocalContainer.java:260)

          at org.jboss.arquillian.container.jbossas.managed_6.JBossASLocalContainer.start(JBossASLocalContainer.java:101)

          ... 72 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.aspects.security.SecurityClientInterceptor (no security manager: RMI class loader disabled)

          at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375)

          at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)

          at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)

          at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)

          at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)

          at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)

          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

          at java.util.ArrayList.readObject(ArrayList.java:593)

          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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

          at java.rmi.MarshalledObject.get(MarshalledObject.java:142)

          at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:771)

          ... 76 more

       

      *my pom.xml looks like:*

      {code:xml}

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

          <modelVersion>4.0.0</modelVersion>

          <groupId>org.richfaces.tests</groupId>

          <artifactId>richfaces-showcase-ftest</artifactId>

          <version>4.0.0-SNAPSHOT</version>

          <packaging>jar</packaging>

          <name>RichFaces ShowCase Smoke Ftest</name>

       

          <properties>

              <arquillian.version>1.0.0.Alpha5</arquillian.version>

              <version.ajocado>1.0.0-SNAPSHOT</version.ajocado>

              <version.selenium>2.0b3</version.selenium>

          </properties>

       

          <dependencies>

              <dependency>

                  <groupId>org.richfaces.examples</groupId>

                  <artifactId>richfaces-showcase</artifactId>

                  <type>war</type>

                  <version>4.0.0-SNAPSHOT</version>

              </dependency>

              <dependency>

                  <groupId>org.richfaces.tests</groupId>

                  <artifactId>metamer-ftest-source</artifactId>

                  <version>4.0.0-SNAPSHOT</version>

                  <scope>compile</scope>

              </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>${arquillian.version}</version>

                  <scope>test</scope>

              </dependency>

              <!-- Arquillian Drone dependency -->

              <dependency>

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

                  <artifactId>arquillian-drone</artifactId>

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

                  <scope>test</scope>

              </dependency>

              <!-- Arquillian Ajocado dependencies -->

              <dependency>

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

                  <artifactId>arquillian-ajocado-api</artifactId>

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

                  <scope>test</scope>

              </dependency>

              <dependency>

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

                  <artifactId>arquillian-ajocado-impl</artifactId>

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

                  <scope>test</scope>

              </dependency>

              <dependency>

                  <groupId>org.seleniumhq.selenium</groupId>

                  <artifactId>selenium-remote-control</artifactId>

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

              </dependency>

              <dependency>

                  <groupId>org.seleniumhq.selenium</groupId>

                  <artifactId>selenium-server</artifactId>

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

              </dependency>

          </dependencies>

       

          <profiles>

               <profile>

                  <id>jbossas-managed-6</id>

                  <dependencies>

                      <dependency>

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

                          <artifactId>arquillian-jbossas-managed-6</artifactId>

                          <version>1.0.0.Alpha5</version>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.jbossas</groupId>

                          <artifactId>jboss-server-manager</artifactId>

                          <version>1.0.3.GA</version>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.jbossas</groupId>

                          <artifactId>jboss-as-client</artifactId>

                          <version>6.0.0.Final</version>

                          <type>pom</type>

                      </dependency>

                  </dependencies>

              </profile>

         </profiles>

      </project>

      {code}

       

      *my arquillian.xml looks like:*

      {code:xml}

      <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="true">

              <configuration>

                  <property name="jbossHome">${JBOSS_HOME}</property>

              </configuration>

          </container>

       

          <extension qualifier="selenium-server">

              <configuration>

                  <property name="enable">true</property>

              </configuration>

          </extension>

       

          <extension qualifier="ajocado">

              <configuration>

                  <property name="browser">*firefox</property>

                  <property name="contextRoot">http://localhost:8080/</property>

                  <property name="seleniumTimeoutAjax">5000</property>

                  <property name="seleniumMaximize">true</property>

              </configuration>

          </extension>

      </arquillian>

      {code}

       

      Please, am I doing something in a wrong way ? The location of JBoss AS is valid, it starts with running it, but stucks with the error above. Thanks for reply.