Removed A Project That Was Still Tied To A Portal Test Server
Problem:
- Your Portal Test server fails to publish
- You don't get the option to Add/Remove the project by right clicking on the Server.
- Opening the Server Overview gives you the following message:"Some projects entries defined in the server configuration are not valid. Do you want the editor to fix the project entries automatically?" (It will not be fixed automatically)
- If you look at the Server Overview > Properties, the deleted Project is still there.
Cause:
You probably removed the project from your RAD workspace while it was still tied to a RAD Portal Test Server.
Solution:
You need to manually delete the reference to the Project in the server config. Do this:
- In RAD look at the Server Overview > Properties, and determine what the offending projects are (ie. ones listed that are no longer in the workspace. eg. cbibApplicationEAR).
- Shutdown RAD.
- Navigate to your RAD workspace directory that holds the server config. These should be located in .plugins\com.ibm.wtp.server.core\configs
- Do a file system search for any file containing the project off the above directory (eg. cbibApplicationEAR)
- It will most likely return files such as memento.xml and deployment.xml files, which have the offending project in it.
- For memento.xml: remove the project in the map
- For deployment.xml: remove the <deployedObject> for that app
- Do the same for any other files (eg. server.xml etc).
- RAD may also have created temporary directories for these projects. Delete these as well (eg configs\<<date-stamp>>\cells\localhost\applications\cbibApplicationEAR)
- Start RAD. The server configuration should be valid now, and you should be able to publish.