4 Replies Latest reply on Feb 10, 2006 3:31 PM by bdaw

    Question about Changing the context path

    chaser

      According to the document :

      3.2. Changing the context path
      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.context-root to anything you want.
      Now you can rebuild JBoss portal and redeploy it for the context path changes to take effect


      But I couldn't find such: local.properties . and what's the $PORTAL_HOME? Is it C:\jboss-4.0.3SP1\server\default\deploy\jboss-portal.sar?

      Thanks

        • 1. Re: Question about Changing the context path
          bdaw

           

          3.2. Changing the context path
          ....
          Now you can rebuild JBoss portal and redeploy it for the context path changes to take effect


          You need to rebuild so...

          "xchen_cs@hotmail.com" wrote:

          But I couldn't find such: local.properties . and what's the $PORTAL_HOME?


          $PORTAL_HOME is directory with portal sources.

          You will find local.properties-example in $PORTAL_HOME/build/etc
          so just copy/rename it to
          $PORTAL_HOME/build/local.properties
          then edit and rebuild


          • 2. Re: Question about Changing the context path
            chaser

            So I have to deploy the portal from the 'source' as the document in 2.3 :

            2.3. Deploying JBoss Portal

            2.3.2. From the sources

            Thanks.

            • 3. Re: Question about Changing the context path
              chaser

              I tried to build the 'jboss-portal.sar' as in the document:

              JBOSS_HOME = C:\jboss-4.0.3SP1

              then in the build directory, I typed: build (it's XP box)

              It said the 'build success', but I didn't find the 'jboss-portal.sar' is in the deploy directory: C:\jboss-4.0.3SP1\server\default\deploy.

              Thansk.

              • 4. Re: Question about Changing the context path
                bdaw

                So you're almost there ;)

                In docs you have:


                First, build the sources and deploy them, go to jboss-portal-2.0/build and type sh build.sh deploy, you should read BUILD SUCCESSFUL at the end of the operation. This operation should have copired the jboss-portal.sar to your $JBOSS_HOME/server/default/deploy directory.
                Warning

                Make sure that JBOSS_HOME is still defined in the environment or it will not work.


                In xp in build directory type:
                "build deploy" and with JBOSS_HOME set properly you will have portal sar copied.

                Read The Manual.........