title: Arquillian can't communicate with remote JBoss Wildfly, insist on localhost
body: <p>We switched to JBoss EAP 7, which is roughly the same as JBoss Wildfly 10.</p>
  
  <p>This came with a new version of Arquillian, and now I'm trying to test everything.</p>
  
  <p>The tests work on my local machine, running on a local JBoss. However, when I try to run them on our build server, which should connect to the JBoss server (another machine), the tests fail.</p>
  
  <p>I can see in the server log that the test WAR is deployed and removed after the test. However, during the test, Arquillian wants to connect to localhost:</p>
  
  <pre><code>Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.294 sec &lt;&lt;&lt; FAILURE! - in itest.com.mydomain.esv.dds.bo.DDSDokumentI18NTest
  testI18NKeys(itest.com.mydomain.esv.dds.bo.DDSDokumentI18NTest)  Time elapsed: 1.024 sec  &lt;&lt;&lt; ERROR!
  java.lang.IllegalStateException: Error launching test itest.com.mydomain.esv.dds.bo.DDSDokumentI18NTest public void com.mydomain.esv.util.testing.i18n.I18NTestBase.testI18NKeys()
  ...
  Caused by: java.lang.IllegalStateException: Error launching request at http://localhost:8080/dds-adapter-api-itest/ArquillianServletRunner?outputMode=serializedObject&amp;className=itest.com.mydomain.esv.dds.bo.DDSDokumentI18NTest&amp;methodName=testI18NKeys. No result returned
      at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.executeWithRetry(ServletMethodExecutor.java:139)
      at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:99)
      at org.jboss.arquillian.container.test.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:109)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
  </code></pre>
  
  <p>Here's my arquillian.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;arquillian xmlns="http://jboss.org/schema/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"&gt;
    &lt;!-- Force the use of the Servlet 3.0 protocol with all containers, as it is the most mature --&gt;
    &lt;defaultProtocol type="Servlet 3.0" /&gt;
  
    &lt;!-- Example configuration for a remote JBoss EAP instance --&gt;
    &lt;container qualifier="jboss-remote" default="true"&gt;
      &lt;configuration&gt;
        &lt;property name="managementAddress"&gt;foobar.mydomain.com&lt;/property&gt;
        &lt;property name="managementPort"&gt;9990&lt;/property&gt;
        &lt;property name="username"&gt;admin&lt;/property&gt;
        &lt;property name="password"&gt;password&lt;/property&gt;
      &lt;/configuration&gt;
    &lt;/container&gt;
  &lt;/arquillian&gt;
  </code></pre>
  
  <p>These are my relevant dependencies (we're using JBoss EAP 7.0.4):</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.jboss.bom&lt;/groupId&gt;
    &lt;artifactId&gt;jboss-eap-javaee7-with-tools&lt;/artifactId&gt;
    &lt;version&gt;7.0.4.GA&lt;/version&gt;
    &lt;type&gt;pom&lt;/type&gt;
    &lt;scope&gt;import&lt;/scope&gt;
  &lt;/dependency&gt;
  
  
  &lt;dependency&gt;
    &lt;groupId&gt;org.jboss.shrinkwrap.resolver&lt;/groupId&gt;
    &lt;artifactId&gt;shrinkwrap-resolver-depchain&lt;/artifactId&gt;
    &lt;type&gt;pom&lt;/type&gt;
    &lt;scope&gt;test&lt;/scope&gt;
    &lt;version&gt;2.2.2&lt;/version&gt;
    &lt;exclusions&gt;
      &lt;exclusion&gt;
        &lt;groupId&gt;javax.enterprise&lt;/groupId&gt;
        &lt;artifactId&gt;cdi-api&lt;/artifactId&gt;
      &lt;/exclusion&gt;
      &lt;exclusion&gt;
        &lt;groupId&gt;javax.inject&lt;/groupId&gt;
        &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
      &lt;/exclusion&gt;
    &lt;/exclusions&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;org.jboss.arquillian.junit&lt;/groupId&gt;
    &lt;artifactId&gt;arquillian-junit-container&lt;/artifactId&gt;
    &lt;version&gt;1.1.11.Final&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;org.wildfly.arquillian&lt;/groupId&gt;
    &lt;artifactId&gt;wildfly-arquillian-container-remote&lt;/artifactId&gt;
    &lt;version&gt;2.0.0.Final&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;org.jboss.arquillian.protocol&lt;/groupId&gt;
    &lt;artifactId&gt;arquillian-protocol-servlet&lt;/artifactId&gt;
    &lt;version&gt;1.1.11.Final&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Here's the test class:</p>
  
  <pre><code>@RunWith(Arquillian.class)
  public class DDSDokumentI18NTest extends DDSArquillianI18NFieldEnumSupplierTest {
  
    /**
     * {@inheritDoc}
     */
    @Override
    protected FieldEnumSupplier getFieldEnumSupplier() {
      return new DDSDokument();
    }
  
  }
  </code></pre>
  
  <p>And its base class:</p>
  
  <pre><code>@RunWith(Arquillian.class)
  public abstract class DDSArquillianI18NFieldEnumSupplierTest extends FieldEnumSupplierI18NTestBase&lt;I18NService&gt; {
  
    @Inject
    private I18NService i18nService;
  
    /**
     * Creates the deployment for the test.
     * @return the deployment
     */
    @Deployment
    public static Archive&lt;?&gt; createDeployment() {
      return DDSArquillianIntegrationTest.createCoreDeployment();
    }
  
    /**
     * {@inheritDoc}
     */
    @Override
    protected Map&lt;String, String&gt; getI18NKeysAndValues() {
      final Map&lt;I18NLanguage, Map&lt;String, String&gt;&gt; values = getService().getValues(DDSArquillianI18NTest.I18N_PATTERNS);
      return values.get(I18NLanguage.GERMAN);
    }
  
    /**
     * {@inheritDoc}
     */
    @Override
    public I18NService getService() {
      return this.i18nService;
    }
  
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>