Thursday, April 15, 2010

Using a new host name for an existing virtual portal

Currently while working on my project I encountered an issue as a result of upgrading portal to 6.1.0.3.
The issue was regarding virtual portal that I created before an upgrade and assigned "Host Name" parameter to it. To troubleshoot the issue I had to change the "Host Name" value, in fact needed to remove it. Anyone played with Virtual portal might have got that this is not possible by just editing the virtual portal settings using Administrative portlet. You can not modify this entry after you assigned it. I have gone through the infocenter and found that this is know limitation for virtual portal and one has to follow below mentioned series of steps to achieve this task.

1. Export the content of your existing virtual portal using xmlAccess interface.

[Portal_server_root]/bin $ ./xmlaccess.sh -user admin -password secrete -url http://hostname:port/wps/config/virtual_portal_context -in /opt/IBM/WebSphere/PortalServer/doc/xml-samples/Export.xml -out result.xml

2. Delete existing virtual portal using manage virutal portal portlet.


3. Clean up any references to the deleted virtual portal by using the Task.xml of xmlAccess.

./xmlaccess.sh -user admin -password secrete -url http://hostname:port/wps/config -in /opt/IBM/WebSphere/PortalServer/doc/xml-samples/Task.xml -out result_cleanup.xml

4. Create a new empty virtual portal by running configuration task
create-virtual-portal. Use the context of the deleted virtual portal and do not provide any host name parameter value.

5. Import the contents of the original virtual portal to the new virtual portal using xmlAccess interface.

./xmlaccess.sh -user admin-password secrete -url http://hostname:port/wps/config/New_virtual_Portal_Context -in /opt/IBM/WebSphere/PortalServer/bin/result.xml -out result_import_VP.xml


Now you are ready to access your virtual portal :). Hope this helps the community in some way.


2 comments:

Frankona said...

Hi! Thanks for this very interesting article.

I have a question. If I'd like to duplicate the main portal into the virtual portal, will this work too?

Thanks in advance

Mihir Shah said...

Juan, Thanks for appreciating the post. I am not sure whether main portal will also be duplicated or exported into the virtual portal or not. Actually I am looking at that too. If I found something interesting on this then will publish it and share with you all.