3 Replies Latest reply on Aug 23, 2005 2:49 AM by jactor

    Deploy as root on web

      I don't know where to display this so here it comes:

      I am developing an application on the jboss-4.0.3RC1, and wants the users to access it from the root url Ex: www.my.app. But if I deploy an ear/war file in the servers deploy file, then it is given the name of the war-file Ex: www.my.app/war.

      Is there anywhere I can configure this or do I have to deploy/copy the content to the folder named 'jbossweb-tomcat55.sar\ROOT.war' under the deploy folder to the server?

      Regards

        • 1. Re: Deploy as root on web
          genman


          I think you can remove the ROOT.war out of the jbossweb-tomcat50.sar dir and create your own and have it deployed instead.

          • 2. Re: Deploy as root on web
            peterj

            Put the following in your jboss-web.xml file:

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


            [/url]

            • 3. Re: Deploy as root on web

              Thanx!

              I found a simular solution to the problem (as the last statement)...

              If one is deployed with an ear file, the application.xml can have the following statement:
              &lt;module&gt;
              &lt;web&gt;
              ...
              &lt;context-root&gt;/</context-root&gt;
              &lt;/web&gt;
              &lt;/module&gt;