2 Replies Latest reply on Nov 14, 2014 10:57 AM by kpiwko

    Arquillian - howto enrich web.xml to include ArquillianServletRunner mapping?

    hanasaki

      Running Arquillian 1.1.5.Final and AS 7.2

      The JUnit test creates a web archive and adds a simple web.xml to it (no servlets, filters etc...)

      When the WAR is deployed and the test method runs, the below error is output.

       

      A web posting talks about Arquillian "enriching" the web.xml to include this servlet however it does not appear to be doing so.

      What exactly results in the web.xml being enriched to add the ArquillianServletRunner automagically instead of requiring this to be manually added to the test WAR web.xml?

       

      java.lang.IllegalArgumentException: ArquillianServletRunner not found. Could not determine ContextRoot from ProtocolMetadata, please contact DeployableContainer developer.