Version 2

    Change the root path and prefix of the url

     

    (from http://jboss.org/index.html?module=bb&op=viewtopic&t=106605)

     

    To change the root path of the url.

     

    From (classic) : "http://localhost:8080/portal/portal/default"

     

    To : "http://localhost:8080/myPortalContextRoot/myDefaultCommand/myDefaultPortalName"

     

     

    a) Prefix for : Portal Context Root (first "portal" in classic url)

     

    In the file : \deploy\jboss-portal.sar\portal-server.war\WEB-INF\jboss-web.xml

     

    Replace the context root item to : <context-root>/myPortalContextRoot</context-root>

     

    The cms coded url can then be :

     

    "http://localhost:8080/myPortalContextRoot/cms_root_code/cms_repository_path/cms_file_name"

     

     

    b) Prefix for : PortalObjects commands (PortalObject Commands and url factories)

     

    (second "portal" in classic url)

     

    The PortalObjects commands are used to call a page or window, with parameters in the url.

     

    In the file : \deploy\jboss-portal.sar\META-INF\jboss-service.xml

     

    b1) Command factory

     

    Switch off the service (put comments): name="portal:commandFactory=Delegate,prefix=portal"

     

    Replace the d�claration with a new one, with modification (copy the xml items and modify) :

     

    - modify the name to : name="portal:commandFactory=Delegate,prefix=myDefaultCommand"

     

    - modify the prefix item to : myDefaultCommand

     

    b2) Url factory

     

    Switch off the service : name="portal:urlFactory=PortalObject"

     

    Replace the d�claration with a new one, with modification :

     

    - modify the prefix item to : myDefaultCommand

     

    - no modification of the service name

     

     

    c) The portal prefix

     

    (the "default" prefix, in third position in the classic url)

     

    This prefix is set in the portal description, default-object.xml file.

     

    The one provide by JBoss portal, and also in yours (for your portal).

     

    The item is : <portal-name>myDefaultPortalName</portal-name>

     

     

    Also in the default-object.xml file, see the definition of the default page :

     

    The name of the default page and the value item of the property of default object of the portal :

     

    the item is <portal.defaultObjectName>

     

     

     

    To set the default to be myDefaultPortalName (when multiple portals instances) :

     

    See this forum and jira posts to set it as the default portal of multiple portals :

     

    http://jboss.org/index.html?module=bb&op=viewtopic&t=104612

     

    and

     

    http://jira.jboss.com/jira/browse/JBPORTAL-1324?watch=true

     

    (there is a small problem with not using "default" as the default portal name).