"ArquillianServletRunner not found" with Tomcat 7 Embedded

I am trying to create a test suite with Arquillian and Tomcat 7 embedded, but when I deploy my WAR file using the web.xml file, I get the following error.

ArquillianServletRunner not found. Could not determine ContextRoot from Metadata protocol, contact the DeployableContainer developer.

How to fix it?

+3


source to share


1 answer


So I don't know the exact reason for this, but there is a simple workaround.

What's happening is that the servlet is not mapped to the name "ArquillianServletRunner". This appears to be handled by the web fragment: http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.jboss.arquillian.protocol/arquillian-protocol-servlet/1.0 .0.Beta1 / org / jboss / arquillian / protocol / servlet / v_3 / web-fragment.xml



My solution was to simply copy the content of the web fragment in the file above into the web.xml file that I included in the WebArchive that was created with ShrinkWrap. Thus, the "ArquillianServletRunner" servlet was configured and available.

+2


source







All Articles