OK, adding jboss-web.xml with

<jboss-web>
    <context-root>/</context-root>
</jboss-web>

fixes the problem.

But imo, this should be done by default by AS for ROOT.war.

-Ales

On Nov 14, 2012, at 1:06 AM, Ales Justin <ales.justin@gmail.com> wrote:

When running some CapeDwarf tests, where I need to deploy ROOT.war,
I ran into this error:

---

Caused by: java.lang.IllegalStateException: Error launching request at http://192.168.1.104:8080/ROOT/ArquillianServletRunner?outputMode=serializedObject&className=org.jboss.test.capedwarf.testsuite.mapreduce.test.MapReduceTestCase&methodName=testCountJob. No result returned

---

Looking at how urls get created in ARQ for AS7 servlet protocol, this is the line that is invalid:

https://github.com/jbossas/jboss-as/blob/master/arquillian/common/src/main/java/org/jboss/as/arquillian/container/ManagementClient.java#L272

But the question now is, should this ManagementClient understand /ROOT as /,
or it should AS' server side return right "context-root" for ROOT.war.

Imo, it should be the 2nd, as ROOT.war is impl detail of server, not client.

-Ales