-
1. Re: Want to get rid of
peterj Mar 23, 2009 10:41 PM (in response to mikephoenix)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>
-
2. Re: Want to get rid of
mikephoenix Mar 24, 2009 12:09 PM (in response to mikephoenix)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.
Thanks, Peter. -
3. Re: Want to get rid of
peterj Mar 24, 2009 1:41 PM (in response to mikephoenix)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).
-
4. Re: Want to get rid of
mikephoenix Mar 24, 2009 7:44 PM (in response to mikephoenix)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.