Hmm, no mention of which version of JBoss AS, so I'll assume 5.0.x. If you want to get rid of the JBoss AS welcome page, remove the directory server/xxx/deploy/ROOT.war. If you want your app's main page to use the root context, add a context-root entry to WEB-INF/jboss-web.xml to your WAR file:
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>/</context-root> </jboss-web>
Whoops. sorry. It's version 4.01, which has root.war under jbossweb-tomcat50.sar. I assume the jboss-web.xml solution will work with that version. I assume removing root.war from the location or doing the application solution you suggest will work for 4.01. If those assumptions are incorrect, please let me know.
I assume that you will have tried this already and found out on your own that your assumption is correct (as far as I know - it's been a while since I used 4.0.1).
The context root did not work. It made me development set up go entirely nuts, possibly because jboss-web tag contains multiple ejb-local-ref tags. What did work nicely was replacing index.html in ROOT.war with a html file containing a meta tag redirect.