title: ArquillianServletRunner not found
body: <p>I've got yet another non-working Arquillian test:</p>
  
  <pre class="lang-java prettyprint-override"><code>@RunWith(Arquillian.class)
  public class SomeTest {
  
  private static final String APPLICATION_XML = "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;"
          + "&lt;application xmlns=\"http://java.sun.com/xml/ns/javaee\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd\" version=\"6\"&gt;"
          + "&lt;display-name&gt;org.acme.project&lt;/display-name&gt;&lt;/application&gt;";
  
  @Deployment
  public static Archive&lt;?&gt; createDeployment() {
      EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class);
      ear.setApplicationXML(new StringAsset(APPLICATION_XML));
      ear.addAsModules(Testable.archiveToTest(ShrinkWrap.create(WebArchive.class)));
      return ear;
  }
  
  @Test
  @Transactional
  public void test() throws Exception {
      System.out.println("SomeTest.test()");
  }
  
  }
  </code></pre>
  
  <p>This class is all it takes for the following exception:</p>
  
  <pre><code>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)
  at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:84)
  at org.jboss.arquillian.container.test.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:109)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  ....
  </code></pre>
  
  <p>I've seen other questions around (like <a href="https://stackoverflow.com/questions/13750005/arquillian-adding-beans-xml-causes-arquillianservletrunner-not-found">this one</a>), but all of them seem to be using Glassfish, whereas I use a managed Wildfly 8.1. </p>
  
  <p>Nonetheless, since slf4j has crept its way into my dependency list, I tried different versions of it (1.5.10, 1.6.6, 1.7.13).</p>
  
  <p>As always with this things, there is no indication in the server log (or anywhere) that something went wrong, only the JUnit runner (of Eclipse and Maven) complains. Tests with other deployments run fine.</p>
  
  <p>What's wrong?</p>