WAR
The uri for the WAR in an ear seems to follow a different scheme:
The URL of the application server e.g. http://localhost:8080/
The name of the module from the
pom.xmlfile e.g.webfor thispomfile:<artifactId>web</artifactId>
The URL pattern from the
web.xmlfile e.g.testfor thisweb.xmlfile:<url-pattern>/test</url-pattern>
Note: The complete URL is http://localhost:8080/web/test.