title: Trying to run an Arquillian Test for an ear and getting ArquillianServletRunner not found
body: <p>I am trying to run a test using Arquillian for my ear. I  create the deployment importing my existing ear and then I add a web archive module with my test.</p>
  
  <pre><code>@RunWith(Arquillian.class)
  public class MyTest {
      @Deployment
      public static Archive createDeployment() {
          EnterpriseArchive ear = ShrinkWrap.createFromZipFile(EnterpriseArchive.class , new File("/location/to/my/ear") );
          WebArchive arc = Testable.archiveToTest( ShrinkWrap.create(WebArchive.class, "MyTest.war").addClass(MyTest.class).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml") );
          return ear.addAsModule( arc );
      }
      ....
  }
  </code></pre>
  
  <p>I am using JBoss EAP 6.3.0 as my container (managed)</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;defaultProtocol type="Servlet 3.0" /&gt;
  
      &lt;container qualifier="jbossas-managed" default="true"&gt;
          &lt;configuration&gt;
          &lt;/configuration&gt;
      &lt;/container&gt;
  &lt;/arquillian&gt;
  </code></pre>
  
  <p>in my pom.xml</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jboss.arquillian.junit&lt;/groupId&gt;
          &lt;artifactId&gt;arquillian-junit-container&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.8.1&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jboss.spec&lt;/groupId&gt;
          &lt;artifactId&gt;jboss-javaee-6.0&lt;/artifactId&gt;
          &lt;version&gt;1.0.0.Final&lt;/version&gt;
          &lt;type&gt;pom&lt;/type&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jboss.as&lt;/groupId&gt;
          &lt;artifactId&gt;jboss-as-arquillian-container-remote&lt;/artifactId&gt;
          &lt;version&gt;7.2.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;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>When I run the test I get the following exception</p>
  
  <p>java.lang.IllegalArgumentException: ArquillianServletRunner not found. Could not determine ContextRoot from ProtocolMetadata, please contact DeployableContainer developer.
      at org.jboss.arquillian.protocol.servlet.ServletUtil.determineBaseURI(ServletUtil.java:64)
      at org.jboss.arquillian.protocol.servlet.ServletURIHandler.locateTestServlet(ServletURIHandler.java:60)</p>
  
  <p>I have verified that the deployed ear contains the MyTest.war module as well as the arquillian-related jars in the lib folder of the ear. </p>
  
  <p>Any help is greatly appreciated.</p>