5 Replies Latest reply on Jun 27, 2006 7:33 PM by Chris Laprun

    Jboss 2.4 and portlet-instances.xml

    Vincenzo Segreto Newbie

      Hi all,
      I'm getting some (i think) strange debug info about my deployment files.

      ...
      2006-06-22 04:46:27,703 DEBUG [org.jboss.portal.portlet.container.PortletContainer] Initialized portlet object mywork.controllers.CentralController
      2006-06-22 04:46:27,703 DEBUG [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Looking for the WEB-INF path of myportal
      2006-06-22 04:46:27,703 DEBUG [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Found -object.xml containing instances, you need to convert and move them to the file C:\Programmi\jboss-4.0.4.GA\server\default\.\tmp\deploy\tmp59698myportal-exp.war\WEB-INF/portlet-instances.xml
      2006-06-22 04:46:27,703 DEBUG [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Adding legacy instance CentralControllerInstance
      2006-06-22 04:46:27,703 INFO [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] These instances have been found in -object.xml, you should put them in the file C:\Programmi\jboss-4.0.4.GA\server\default\.\tmp\deploy\tmp59698myportal-exp.war\WEB-INF/portlet-instances.xml
      2006-06-22 04:46:27,703 INFO [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] <?xml version="1.0" encoding="utf-8" standalone="yes"?>
      <deployments>
      <deployment>
      <instance>
      <instance-id>CentralControllerInstance</instance-id>
      <portlet-ref>CentralController</portlet-ref>
      </instance>
      </deployment>
      </deployments>


      It says I need to put something in portlet-instances.xml, but this file wasn't abragated since 2.2 version?

      here something from portlet.xml and myportal-object.xml files:

      portletl.xml
      ...
       <portlet>
       <description>Controller centrale della mia web application</description>
       <portlet-name>CentralController</portlet-name>
       <portlet-class>mywork.controllers.CentralController</portlet-class>
       <expiration-cache>-1</expiration-cache>
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       </supports>
       <portlet-info>
       <title>Central Menu Portlet</title>
       <short-title>Central Menu Portlet</short-title>
       <keywords>central, menu, portlet</keywords>
       </portlet-info>
       </portlet>
      ...
      


      myportal-object.xml:
      ...
       <window>
       <window-name>Central Controller Window</window-name>
       <instance-ref>CentralControllerInstance</instance-ref>
       <region>center</region>
       <height>0</height>
       </window>
      ...
       <deployment>
       <if-exists>overwrite</if-exists>
       <instance>
       <instance-name>CentralControllerInstance</instance-name>
       <component-ref>myportal.CentralController</component-ref>
       </instance>
       </deployment>
      ...
      


      Suggesionts?