1 Reply Latest reply on Aug 10, 2006 5:13 AM by Viet

    Strange security warning

    Peter Johnson Master

      When I deploy my portlet, I get the following warning on the console:

      15:15:04,468 WARN [PortalObjectMetaData] Window ImagePortletWindow has security a configuration but it is not taken in account, portlet instance configuration should be done rather


      I think that this error message is telling me that I placed my security information into the wrong configuration file, that it should go into the portlet-instances.xml file. (It would help if the error text was clearer.)

      The thing is, I don't have any security information in any configuration file. And thinking that possibly I was getting some default security, I decided to add a security-constraint node to my portlet in the portlet-instances file, and I still got the same warning.

      So the question is, what is the warning telling me and what do I have to do?

      JBoss AS 4.0.4.GA, JBoss Portal 2.4.0.CR3.

      portlet-instances.xml:

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <deployments>
       <deployment>
       <instance>
       <instance-id>ImagePortletInstance</instance-id>
       <portlet-ref>ImagePortlet</portlet-ref>
       </instance>
       </deployment>
      </deployments>
      


      portlet.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
       version="1.0">
       <portlet>
       <portlet-name>ImagePortlet</portlet-name>
       <portlet-class>peter.portlet.image.ImagePortlet</portlet-class>
       <init-param>
       <name>jsp-view</name>
       <value>/WEB-INF/jsp/view.jsp</value>
       </init-param>
       <init-param>
       <name>jsp-edit</name>
       <value>/WEB-INF/jsp/edit.jsp</value>
       </init-param>
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       <portlet-mode>EDIT</portlet-mode>
       </supports>
       <resource-bundle>peter.portlet.image.message</resource-bundle>
       <portlet-info>
       <title>Image</title>
       </portlet-info>
       </portlet>
      </portlet-app>
      


      image-object.xml
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <deployments>
       <deployment>
       <if-exists>overwrite</if-exists>
       <parent-ref>default.default</parent-ref>
       <window>
       <window-name>ImagePortletWindow</window-name>
       <instance-ref>ImagePortletInstance</instance-ref>
       <region>center</region>
       <height>1</height>
       </window>
       </deployment>
      </deployments>