I've two web application wars STORE_ABC.war
and STORE_DEF.war
and single JBoss server running on my machine. I want to deploye both war with same context path in my jboss as follows.
http://localhost:8080/home
For STORE_ABC.war
http://testsite1:8080/home
For STORE_DEF.war
jboss-web.xml
for STORE_ABC.war
and STORE_DEF.war
<jboss-web>
<context-root>/</context-root>
</jboss-web>
How could I achieve above configuration?
I have added another host
vhost2
toserver.xml
inside folder${jboss-home}server\default\deploy\jbossweb-tomcat55.sar
folder as follows:then I added a new file
jboss-web.xml
inSTORE-DEF.war
insideWEB-INF
folder as follows:Now I am able to access
STORE-ABC.war
from URLhttp://localhost:8080/home
andSTORE-DEF.war
from URLhttp://testsite1:8080/home
.Note- Do not forget to add
127.0.0.1 testsite1
inhosts
file.