Exception occured while creating a Virtual Portal with same context path

If you delete a Virtual Portal and want to create another Virtual Portal with same context path immediately, you will might end up getting the following exception because database cleanup task runs only at a specified time so context path will reside in database till the cleanup happens.


"com.ibm.portal.WpsException: EJPEB0806E: Creating a virtual portal failed because a unique key constraint in the data back end was violated. Likely a virtual 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."

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


Task.xml file is a scheduler file which runs at specified schedule time(once/daily/weekly/monthly). It performs Data store cleanup task(com.ibm.portal.data store.task.Resource Cleanup)

Location of Task.xml file : /IBM/WebSphere/PortalServer/doc/XML-samples

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

1. Navigate to following folder location "/IBM/WebSphere/wp_profile/PortalServer/bin" and execute the below command

xmlaccess.bat -in Task.xml -user wpsadmin -password wpsadmin -URL http://host:port/wps/config -out result.xml
2. After successfully running of the command, you can create new virtual portal with same context path.

No comments:

Post a Comment