0 Replies Latest reply on Sep 13, 2012 1:38 PM by Christopher Britz

    Cannot connect to Container - JBoss EAP 5.1

    Christopher Britz Newbie

      So I followed the documentation by Dan Allen on setting up Arquillian with JBoss EAP 5.1, and I am running into a few errors.  Here is the link to the walkthrough: https://docs.jboss.org/author/display/ARQ/JBossEAP5.1-Remote. 

       

      Here is my stacktrace when I try to run my test as a JUnit test within Eclipse:

       

      org.jboss.arquillian.spi.client.container.LifecycleException: Could not connect to container

           at org.jboss.arquillian.container.jbossas.remote_5_1.JBossASRemoteContainer.start(JBossASRemoteContainer.java:83)

           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.junit.Arquillian.(ConfigFile.java:91)

           ... 93 more

       

       

      here are my associated files

       

      Arquillian.xml located on classpath in src/main/resources

      <?xml version="1.0" encoding="UTF-8"?>
      <arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="http://jboss.org/schema/arquillian"
          xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
       
          <container qualifier="jboss-eap-5.1" default="true">
              <configuration>
                  <property name="contextFactory">org.jboss.security.jndi.LoginInitialContextFactory</property>
              </configuration>
          </container>
       
      </arquillian>

       

       

      my auth.conf also in src/test/resources

       

      jmx-console {

          org.jboss.security.ClientLoginModule required;

      };

       

      and my jndi.properties file in the same src/test/resources directory

       

      java.naming.security.principal=admin

      java.naming.security.credentials=admin

      java.naming.security.protocol=jmx-console

       

       

      I have also disabled my authorization within jboss, so I dont think its a security issue.  Any help is much appreciated