2 Replies Latest reply on Aug 26, 2004 2:17 AM by bbeloff

    Configuring for application context root '/'

    bbeloff

      Hi.

      I want to configure the JBoss 3.2.5 default server to enable an application with context root '/', containing a servlet with url pattern '/' - so that I can invoke the servlet with the url 'http://localhost:8080/'.

      Is this possible? Is there any documentation covering this?

      Thank you very much for your help.

      Bruno.

        • 1. Re: Configuring for application context root '/'

          Try adding the following file as /WEB-INF/jboss-web.xml in your application.

          <jboss-web>
          <context-root>/</context-root>
          </jboss-web>

          Deploy your application again. You should now be able to access it via http://server[:port]/

          Hope this helps,
          Josh

          • 2. Re: Configuring for application context root '/'
            bbeloff

            Thank you very much for that.

            This works fine, but I also removed ROOT.war from deploy/jbossweb-tomcat50.sar, and named my own application web archive ROOT.war (deployed within my own application's EAR file).

            I'm not sure what all the functions of the default ROOT.war are, and whether I'm missing something by removing it!?

            Right now, it all seems to work, though.

            Cheers,
            Bruno.