4 Replies Latest reply on Jan 9, 2007 4:59 AM by Thomas Heute

    securing portlets fails on redeploy

    anu123suya Newbie

      Hi,

      I am facing problems in securing portlets.
      The security constraint applied for the portlet instance
      on the first deployment works fine.

      But when I try to change the security constraint and redeploy,
      the security constraints are not updated.
      The portal shows only the first deployed security.

      This doesn't change even after the restart of the server.

      It works only if I clear the database and restart the server.

      Am I missing some configuration parameters.

      I don't face any such problems securing pages.

      Here is my portlet-instances.xml


      <?xml version="1.0" standalone="yes"?>





      <instance-id>MyPortletInstance</instance-id>
      <portlet-ref>MyPortlet</portlet-ref>
      <security-constraint>
      <policy-permission>
      <role-name>NewRole</role-name>
      <action-name>view</action-name>
      </policy-permission>
      </security-constraint>





      Please help