Sun Java System Portal Server 7.1 Configuration Guide

ProcedureTo Create a Portal Instance on a New Instance of Application Server on Which a Portal Instance Exists

Before You Begin

Ensure the following:

  1. Create a node agent, nodeagent1, in the same domain in which the first Portal Server instance exists.


    ApplicationServer_base/appserver/bin/asadmin
    create-node-agent --host hostname.domain 
    --port 4849 --user ApplicationServer_admin_user 
    --password ApplicationServer_admin_password nodeagent1
    
  2. Create an instance in the node agent.


    ApplicationServer_base/appserver/bin/asadmin 
    create-instance --host hostname.domain 
    --port 4849 --user ApplicationServer_admin_user
    --password ApplicationServer_admin_password 
    --nodeagent nodeagent1 --systemproperties HTTP_LISTNER_PORT=3870 server2
    
  3. Start the node agent and the instance.


    ApplicationServer_base/appserver/bin/asadmin
    start-node-agent --user admin --password password nodeagent1
    
    ApplicationServer_base/appserver/bin/asadmin
    start-instance --port 4849 --user admin --password password server2
    

    Note –

    When you start the instance after starting the node agent, the start-instance CLI may fail stating that the server instance is already started. In this case, ignore the message. This is due to the server instance being started while starting the node agent. This behavior is controlled by the start-servers-in-startup attribute, located in the domain.xml and if it is set to true, all the server instances which are not running are started during node-agent startup.


  4. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSAS81 to a PortalServer_base/SUNWportal/bin/secondinstance.properties file.

  5. Edit the following properties in the secondinstance.properties file.

    • Host=hostname.domain

    • Port=3870

    • Scheme=http

    • WebContainerType=SJSAS81

    • WebContainerInstallDir=/ApplicationServer_base/SUNWappserver/appserver

    • WebContainerInstanceName=server2

    • WebContainerDomainName=domain1

    • WebContainerInstanceDir=ApplicationServer_base/nodeagents/node1/server2

    • WebContainerDocRoot=ApplicationServer_base/nodeagents/node1/server2/docroot

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=admin port of domain1

    • WebContainerAdminScheme=https

    • WebContainerAdminUid=admin id

    • WebContainerAdminPassword=ApplicationServer admin password

    • WebContainerMasterPassword=ApplicationServer master password

  6. Create the new Portal Server instance.

    PortalServer_base/SUNWportal/bin/psadmin create-instance -u amadmin -f ps_password -p portal1 -w secondinstance.properties

  7. Restart the web container.

  8. Verify that the new portal instance has been created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password.

  9. Access the new Portal Server instance.

    http://hostname.domain.com:3870/portal