I am writing a custom navigation portlet that I would like to overwrite the older NavigationPortlet instance created in JBoss Portal when you first install the application. However, for some reason it does not seem to overwrite the NavigationPortletInstance when I deploy my new navigation portlet. Here is my portlet-instances.xml file for your reference. I am using JBoss Portal version 2.4.0:
<?xml version="1.0" encoding="UTF-8"?> <deployments> <deployment> <if-exists>overwrite</if-exists> <instance> <instance-id>NavigationPortletInstance</instance-id> <portlet-ref>SterlingNavigationPortlet</portlet-ref> </instance> </deployment> </deployments>