Say I have a simple j2EE ear:
foo.ear
- foo.war
I would like to deploy the same ear twice so I rename the ear:
bar.ear
- foo.war
The META-INF\application.xml
file looks like this:
<application>
<module>
<web>
<web-uri>foo.war</web-uri>
<context-root>/baz</context-root>
</web>
</module>
</application>
When I deploy there is a collison, both apps will try to mount at http://localhost:8080/baz
. Is there a way to prefix the ear name to the context-root to get foo/baz
and bar/baz
?