3 Replies Latest reply on Jul 29, 2008 11:17 PM by Egor Kolesnikov

    Why /portal/portal/myPortal ?

    Mangeot Stephane Newbie

      Hi,

      Why url contains /portal two times before the name of my portal ?
      I know the first one is removable by setting context-root to / in the jboss-web.xml under $JBOSS_SERVER\server\default\deploy\jboss-portal.sar\portal-server.war\WEB-INF but where does the second /portal come from ?

        • 1. Re: Why /portal/portal/myPortal ?
          Viet Master

          the second portal comes from the PortalObjectURLFactory and PortalObjectCommandFactory that are mapped to handle URL mapping of portal objects (pages, windows, etc...) to URLs.

          for instance, /portal/portal/default/default can be decomposed into

          /portal + /portal + /default/default

          which means

          - /portal = context path of portal war file
          - /portal = mapping of the PortalObject command&url factories
          - /default/default = mapping of ViewPortalObjectCommand with id=/default/default

          all of this is totally flexible and could be adapted to your needs.

          I made the mistake to have a "/portal/portal" in order to remove ambiguity with CMS content which is under "/portal/content". I could have use "/" as portal object root and use a notion of shadowing (i.e "/content" would present CMS content and shadow a "/content" virtual portal) and I should have done that.

          We are keeping that setting as default behavior until now for backward compatibility.

          With the presentation framework there will be a new mapping of URLs to portal invocations so it is an opportunity to fix that in 2.8.

          • 2. Re: Why /portal/portal/myPortal ?
            Little Prince Newbie

            I change jboss-web.xml under $JBOSS_SERVER\server\default\deploy\jboss-portal.sar\portal-server.war\WEB-INF to

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



            deploy\jboss-portal.sar\META-INF\jboss-service.xml to
            <attribute name="Path" ></attribute>
            




            However, after i change, i cannot go into admin page already.
            Any other file i need to change in order to get rid of /portal/portal/ ?

            My questions are
            1) What are the steps if i wan to get rid of /portal/portal/ url?

            2) if i change the context path to '/', how do i get into the Jboss management such as http://localhost:8080/status etc.

            Thanks.



            • 3. Re: Why /portal/portal/myPortal ?
              Egor Kolesnikov Newbie

               

              "julien@jboss.com" wrote:

              all of this is totally flexible and could be adapted to your needs.


              Julien,

              Sorry for bumping this old thread up. Could you please clarify this part? I've been reading through each document regarding JBoss Portal, but did not find any clues :(