I made a copy of the xml from http://publib.boulder.ibm.com/pvc/wp/502/ent/en/InfoCenter/wps/admxmsmp.html#updacctrl
and set the name and uid based on my lookup from the portal admin using screens: Portlet - Manage Applications - selecting the WebPage50.war file and clicking show info.
Selected web module Portlet Application Name Portlets
webpage50.war com.ibm.wps.portlets.webPage.WebPagePortlet V_0_CO
Portlet applications belonging to this web module Portlets
com.ibm.wps.portlets.webPage.WebPagePortlet.1.$cloned.2_0_12D FNNI Subject Web Page
com.ibm.wps.portlets.webPage.WebPagePortlet.1
Here's my XML snippet:
<portal action="locate">
<!-- Set access control on a portlet - the portlet is not redeployed.
The same syntax can be used to set access control on a new deployed portlet -->
<web-app action="locate" uid="com.ibm.wps.portlets.webPage.WebPagePortlet">
<portlet-app action="locate" uid="com.ibm.wps.portlets.webPage.WebPagePortlet.1.$cloned.2_0_12D">
<access-control>
<!-- The user role should not automatically propagate to portlets in this application. -->
<role-block type="propagation" actionset="User"/>
</access-control>
<portlet action="update" active="true" name="FNNI Subject Web Page">
<access-control>
<!-- Remove all role blocks on this resource. -->
<role-block type="none"/>
<role actionset="Administrator" update="set">
<mapping subjectid="ws51bind" subjecttype="USER" update="set"/>
</role>
<role actionset="Privileged User" update="set">
<mapping subjectid="all authenticated portal users" subjecttype="USER_GROUP"
update="set"/>
</role>
<role actionset="User" update="set">
<mapping subjectid="anonymous portal user" subjecttype="USER"
update="set"/>
</role>
</access-control>
</portlet>
</portlet-app>
</web-app>
when I run this I get the following error - which doesn't seem to apply to just trying to update the access control.
<?xml version="1.0" encoding="UTF-8"?>
<!-- IBM WebSphere Portal/5.0 build 144 exported on Wed Jun 23 13:04:38 CDT 2004 from 001prtllnx/172.21.1.24 -->
<!-- 1/9 [web-app uid=com.ibm.wps.portlets.webPage.WebPagePortlet] -->
<!-- 2/9 [portlet-app uid=com.ibm.wps.portlets.webPage.WebPagePortlet.1.$cloned.2_0_12D] -->
<!-- 3/9 [portlet name=FNNI Subject Web Page] -->
<request type="update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_1.2.xsd">
<status element="[portlet name=FNNI Subject Web Page]" result="failed">
<message>com.ibm.wps.command.xml.XmlCommandException: XMLC0091E: The servletref attribute is required to create a portlet clone. If you want to deploy a WAR file without creating clones, check that the names and IDs in your WAR file descriptor match the names and IDs specified in the XML request. [portlet name=FNNI Subject Web Page]</message>
</status>
</request>
What am I missing? Am I using the wrong uid/name?
THx
--?xml version="1.0" encoding="UTF-8"?--
--!-- IBM WebSphere Portal/5.0 build 144 exported on Wed Jun 23 13:04:38 CDT 2004 from 001prtllnx/172.21.1.24 ----
--!-- 1/9 [web-app uid=com.ibm.wps.portlets.webPage.WebPagePortlet] ----
--!-- 2/9 [portlet-app uid=com.ibm.wps.portlets.webPage.WebPagePortlet.1.$cloned.2_0_12D] ----
--!-- 3/9 [portlet name=FNNI Subject Web Page] ----
--request type="update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_1.2.xsd"--
--status element="[portlet name=FNNI Subject Web Page]" result="failed"--
--message--com.ibm.wps.command.xml.XmlCommandException: XMLC0091E: The servletref attribute is required to create a portlet clone. If you want to deploy a WAR file without creating clones, check that the names and IDs in your WAR file descriptor match the names and IDs specified in the XML request. [portlet name=FNNI Subject Web Page]--/message--
--/status--
--/request--