Ensure the following:
Portal Server is installed on Application Server. Name of the first portal is portal1.
Access Manager is installed on Application Server.
Application Server is installed in the default directory.
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 |
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 |
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 |
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.
Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSAS81 to a PortalServer_base/SUNWportal/bin/secondinstance.properties file.
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
Create the new Portal Server instance.
PortalServer_base/SUNWportal/bin/psadmin create-instance -u amadmin -f ps_password -p portal1 -w secondinstance.properties
Restart the web container.
Verify that the new portal instance has been created.
PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password.
Access the new Portal Server instance.
http://hostname.domain.com:3870/portal