4 Replies Latest reply: Mar 24, 2009 7:44 PM by Michael Phoenix RSS

    Want to get rid of "Welcome to JBoss"

    Michael Phoenix Newbie

      What is the easiest way to direct a user who tries to get to our host away from the "Welcome to JBoss" page?
      It has been suggested that we use a virtual host, but I find the JBoss documentation very confusing and lacking in details. Also it appears that we would have to make changes to application configuration files which would need to be changed every time we deployed on test and then deployed on production. Any suggestions on a better method or directions to some clear explanation of how to set up a virtual host on JBoss if that's the only way to get rid of this page. Neither the docs at http://docs.jboss.org/jbossas/guides/webguide/r2/en/html/ch07.html or the wiki offer comprehensible details.


        • 1. Re: Want to get rid of
          Peter Johnson Master

          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"?>

          • 2. Re: Want to get rid of
            Michael Phoenix Newbie

            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
              Peter Johnson Master

              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
                Michael Phoenix Newbie

                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.