1 2 Previous Next 19 Replies Latest reply on Mar 24, 2006 9:29 AM by roy.russo Go to original post
      • 15. Re: changing the context path
        noicangi

        +1






        ----------

        thanks to keletappi and to thomas.

        • 16. Re: changing the context path
          theute

          You are free to submit a patch ;) you have access to the documentation sources.

          Except the details about ROOT.war, i don't understand what is missing.
          I already fixed the typo about "portal.web.context-root"

          This:
          "By default, the "main" page of JBoss portal will be accessible at http://localhost:8080/portal/index.html . You may want to change that either to a different name or to http://localhost:8080/index.html .
          Note
          To do so, edit the file $PORTAL_HOME/build/local.properties and change portal.web.context-root to anything you want.
          Now you can rebuild JBoss portal and redeploy it for the context path changes to take effect."

          is really the only required step to change a context path. (and of course avoid conflicts, don't bind 2 webapps on the same context).

          So please let us know how you would change it, or even better submit a patch on the doco.

          • 17. Re: changing the context path
            keletappi

            First thing is local.properties is not there unless you have built the portal once. Second is that 'rebuild' is actually first 'build clean' and then 'build deploy'. This might be obvious to some people but there are lots of people who need to build the source just to change the context root while knowing very little about building anything.

            • 18. Re: changing the context path
              theute

              Then we should add that info but at another level, not for every configuration step that includes rebuilding or modifying the local.properties file.

              Thanks.

              • 19. Re: changing the context path

                Alternatively, you can go in to the portal-server.war/WEB-INF/jboss-web.xml and change it there:

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


                1 2 Previous Next