title: Wildfly port offset not working with Arquillain
body: <p>Up until now I've been running my intergration tests using JBOSS AS 7 managed with Arquillian Testing framework. I have been setting the offset by 100 This has been working fine but now I want to transfer my integration tests to Wildfly AS managed but the same tests fail with the following error:</p>
  
  <blockquote>
    <p>arquillianBeforeSuite(com.aeroflex.teravm.selfinstall.core.ejb.SampleServiceIT)  Time elapsed: 130.749 sec  &lt;&lt;&lt; FAILURE!
    org.jboss.arquillian.container.spi.client.container.LifecycleException: Could not start container</p>
  </blockquote>
  
  <p>Here is my Arquillian.xml</p>
  
  <pre><code>   &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;!-- &lt;defaultProtocol type="Servlet 3.1"/&gt; --&gt;
  &lt;container qualifier="wildfly-managed" default="true"&gt;
  &lt;configuration&gt;
  &lt;property name="jbossHome"&gt;target/wildfly-8.0.0.Final&lt;/property&gt;
  &lt;property name="serverConfig"&gt;standalone.xml&lt;/property&gt;
  &lt;property name="outputToConsole"&gt;true&lt;/property&gt;
  
  &lt;property name="javaVmArguments"&gt;-Djboss.socket.binding.port-offset=100&lt;/property&gt;
  &lt;/configuration&gt;
  &lt;/container&gt;
  &lt;/arquillian&gt;
  </code></pre>
  
  <p>and a sample of one of the integration tests:</p>
  
  <pre><code>public class SampleServiceIT extends BaseServiceIT
  {
      @Inject
      private SampleService sampleService;
  
      @Parameters(ARQUILLIAN_DATA_PROVIDER)
      @Test(groups = {"integration"})
      public void testGetNotExisting() throws ServiceException
      {
          Long id = new Long(5);
          SampleBean result = sampleService.getSampleObjectById(id);
          Assert.assertNull(result);
      }
  }
  </code></pre>
  
  <p>If I don't change the port offset and just leave the defaults it works fine.</p>
  
  <p>Thanks for any help in advance.</p>