Wednesday, 1 May 2013

How to show up Import-xml portlet for Virtual Portals in WebSphere.

To show up we have to grant permissions for virtual resources as mentioned below:

1. Goto, Administration->Access->Resource Permission->Virtual Resources->PORTAL
         click on Assign Access, select Edit Role of Security Administrator and assign required user there.
       
2. Goto, Administration->Access->Resource Permission->Virtual Resources->XML ACCESS
         click on Assign Access, select Edit Role of Editor and assign required user there.
       
       
Assigning this permissions shows import-xml for virtual portals.


Thanks,
Suman






How to delete IBM WebSphere Virtual Portal Context

To delete Virtual Portal Context path immediately, we have to run Task.xml file for Datastore Cleanup.

location of Task.xml file :  /opt/IBM/WebSphere/PortalServer/doc/xml-samples
where to run                     :   /opt/IBM/WebSphere/wp_profile/PortalServer/bin

What is Task.xml file ?

--> Task.xml file is a scheduler file which runs at specified schedule time(once/daily/weekly/monthly).

--> It performs Datastore cleanup task(com.ibm.portal.datastore.task.ResourceCleanup); i.e.

--> if we delete a virtual portal and want to create another virtual portal with same context path immediately.

--> we will get an exception

    "com.ibm.portal.WpsException: EJPEB0806E: Creating a virutal portal failed because a unique key constraint in the data backend was violated. Likely a virutal portal with the same context was deleted but still exists in the database. It is recommended to run the cleanup task for deleting resources by running the XML script Task.xml using the XML configuration interface."
   
    because cleanup task runs only at a specified time so context path will reside in database still.

 --> To overcome this exception we have to run cleanup task manually.

Process to Run Task.xml file

1. Goto '/opt/IBM/WebSphere/wp_profile/PortalServer/bin' location and execute below command

    ./xmlaccess.sh -in /opt/IBM/WebSphere/PortalServer/doc/xml-samples/Task.xml -user username -password pwd -url http://(IP Address):(port)/wps/config -out taskresult.xml
   
2. After successfully running of the command, you can create new virtual portal with same context path.


Thanks,
MS