2 Replies Latest reply on Feb 19, 2011 10:51 AM by erick.pessoa

    Publish application ...

    erick.pessoa

      Hello ...

       

      My application have path root  ( /APLICACAO ).

      To publish I want define the path root ( / ). For I can access : http://www.pesquisa.com.br/ , instead of http://www.pesquisa.com.br/APLICACAO .

      Somebody can help me?

       

      Thank's

        • 1. Re: Publish application ...
          peterj

          Two steps:

           

          First, remove the default ROOT application. In 5.1.0 it is at server/xxx/deploy/ROOT.war.

           

          Second, create a WEB-INF/jboss-web.xml file within your WAR with this content:

           

          <jboss-web>

            <context-root>/</context-root>

          <jboss-web>

           

          Instead of removing ROOT.war, you could add a jboss-web.xml file to it with a different context-root, or simply rename it. For example, if you rename it to jbossroot.war, you can still access it via http://hostname:8080/jbossroot

           


          • 2. Publish application ...
            erick.pessoa

            Peter, thank's for your help...