4 Replies Latest reply on Mar 7, 2006 8:41 AM by xiaobo chen

    Question about customizing portal

    xiaobo chen Newbie

      Hi, all

      I followed the document as in the web site and I used source code to build the portal. It looked fine till I tried to change the "context-root". In the document, it said, I need to do this:

      To do so, edit the file $PORTAL_HOME/build/local.properties and change portal.context-root to anything you want

      Here, I thought $PORTAL_HOME is the directory of the source code, in my case: C:\jboss-portal-2.0-src.

      then, in the local.properties file: there is a line:

      # Context root for the portal main servlet

      So, I change it to


      (Note: in the document, it said: portal.context-root)

      then, I rebuild: build deploy and it succeeded.

      But when I tried to access the portal like this:

      http://localhost:8080/cmepav, it failed!!!

      it's still http://localhost:8080/portal!!!!

      Could anyone please give me a hint?


        • 1. Re: Question about customizing portal
          Alexander Grünewald Newbie

          I am not an expert on this issue, but what is the value for context root in the file $JBOSS_PORTAL/server/default/deploy/jboss-portal.sar/portal-server.war/WEB-INF/jboss-web.xml?

          Did you try to customize this?

          • 2. Re: Question about customizing portal
            Thomas Heute Master

            chaser, you did the correct way.

            It works, i just tried again. Make sure it deployed well, my guess is that it did not deployed.

            You can do a "ant clean" before "ant deploy" to make sure you have no older files messing around.

            Thanks for the doc bug report, i just fixed this.

            • 3. Re: Question about customizing portal
              xiaobo chen Newbie

              Thanks, Thomas

              I did what you said except that I used 'build clean'. My OS is XP.

              But when I read on the doc. it said:

              The following xml block is the standard configuration for the UserPortlet found in portal-core.war/WEB-INF/portlet.xml:

              My question is that, I built the jboss-portal.sar file from source, how can I open a file within it and edit? Or say, there is only one 'jboss-portal.sar' file in the 'deploy' directory, it's not a directory?

              Later on, for other portlet, I think I will have the same question.

              Could you please give me a hint? Thanks.


              • 4. Re: Question about customizing portal
                xiaobo chen Newbie

                Hi, gruenewa

                I just check the file you mentioned, the context-root turned into what I want. I am wondering if there is a document better step-by-step tutorial for newbies like me to show the architecture of the jboss-portal.sar with some explanation in detail.

                I guess the biggest problem with newbies like me is that we don't have the big picture hence at lost where to do the change.