Sun Java System Reference Configuration Series: Portal Service on Application Server Cluster

ProcedureTo Create a Portal Server Instance on ps1

This procedure uses the psconfig command and a configuration file to create a portal (pstestPortal) as well as a Portal Server instance (ps-inst-ps1) and a search instance (search-inst-ps1) that are both associated with the portal. The procedure deploys the search instance into the non-cluster Application Server instance on ps1 (as-inst-ps1) and the portal Server instance into all instances in Application Server cluster (pscluster).

You begin with an appropriate example configuration file as a template and edit the file to specify parameter values that are needed for the reference configuration.

  1. Create a config-ps1 configuration file.

    Use the example14.xml file as a template.

    # cd /opt/SUNWportal/samples/psconfig

    # cp example14.xml config-ps1.xml

  2. Open the config-ps1.xml file in a text editor.

  3. Modify config-ps1.xml to use the non-default values in the following table:

    Parameter 

    Value 

    AdministratorUserPassword (@ADMIN.PASSWORD@) 

    access-manager-admin-password

    LDAPUserIdPassword (@AMLDAP.PASSWORD@) 

    access-manager-LDAP-password

    DirectoryManagerPassword (@DIRMGR.PASSWORD@) 

    directory-manager-password

    SearchServerID 

    search-inst-ps1

    Host (@HOST.DOMAIN@) 

    ps1.pstest.com

    Port (Search instance) 

    5050

    WebContainerInstanceName (Search instance) 

    as-inst-ps1

    WebContainerInstanceDir (Search instance) 

    /var/opt/SUNWappserver/nodeagents/na-ps1/as-inst-ps1

    WebContainerDocRoot (Search instance) 

    /var/opt/SUNWappserver/nodeagents/na-ps1/as-inst-ps1/docroot

    WebContainerAdminPort (@ADMIN.PORT@) 

    4849

    WebContainerAdminPassword (@PASSWORD@) 

    app-server-admin-password

    WebContainerMasterPassword (@MASTER.PASSWORD@) 

    app-server-master-password

    PortalAccessURL 

    http://ps.pstest.com:80/portal

    PrimaryPortalHost 

    ps1.pstest.com

    PortalID 

    pstestPortal

    InstanceID (Portal Server instance)  

    ps-inst-ps1

    Port (Portal Server instance) 

    80

    WebContainerInstanceName (Portal Server instance) 

    pscluster

    WebContainerInstanceDir (Portal Server instance) 

    /var/opt/SUNWappserver/nodeagents/na-ps1/as-cluster-inst-ps1

    WebContainerDocRoot (Portal Server instance) 

    /var/opt/SUNWappserver/nodeagents/na-ps1/as-cluster-inst-ps1/docroot

  4. Save the modified config-ps1.xml file.

    The modified file is reproduced in Example Configuration File: Portal Server Instance on ps1.

  5. Run the psconfig command.

    # /opt/SUNWportal/bin/psconfig --config /opt/SUNWportal/samples/psconfig/config-ps1.xml

    The response should resemble the following:

    Successfully created PSConfig.properties file
    Copying config templates from: /opt/SUNWportal/template/config
    Successfully created PortalDomainConfig.properties file
    Validating the Input Config XML File
    Configuring Cacao Agent for Portal Software
    Configuring Derby Server Instance
    Connecting to Cacao MBean Server
    Creating Portals
    Domain domain1 started
    Successfully created Portal: pstestPortal
    Configuring Samples