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
vhost2toserver.xmlinside folder${jboss-home}server\default\deploy\jbossweb-tomcat55.sarfolder as follows:then I added a new file
jboss-web.xmlinSTORE-DEF.warinsideWEB-INFfolder as follows:Now I am able to access
STORE-ABC.warfrom URLhttp://localhost:8080/homeandSTORE-DEF.warfrom URLhttp://testsite1:8080/home.Note- Do not forget to add
127.0.0.1 testsite1inhostsfile.