Here's my deploy directory structure...
1. http://localhost:8080/ to point to the deploy>webdev>monkspunk.war directory
2. http://localhost:8080/developer/ to point to the deploy>webdev>developer.war directory
I put the following entries into server.xml
<Context path="/" docBase="webdev/monkspunk.war" debug="0" reloadable="true"/> <Context path="/developer" docBase="webdev/developer.war" debug="0" reloadable="true"/>
However, the server root still points to the JBoss administrative screen instead of to the monkspunk.war directory.
The documentation is ver vague on how to define mappings to directories. Could someone please point me in the right direction?
You can rename the webdev dir to webdev.ear, make a META-INF dir on the webdev.ear dir (deploy/webdev.ear/META-INF) and put there an application.xml file. In that file you can specify which context has every war file within the webdev.ear dir. You should avoid using the server.xml file for doing this.