2 Replies Latest reply on Jun 14, 2006 11:05 AM by mike moses

    JBoss Portal 2.4 Beta1: portlet instances not created

    mike moses Newbie

      jboss-4.0.3SP1
      MySQL 4.1.16
      JbossPortal 2.4 Beta1

      I was successfully deploying a custom portal and several custom portlets under a previous version of JBoss Portal 2.4 (CVS Head obtained 03/25/06).

      I have installed bossPortal 2.4 Beta1. The custom portal and portlets do not generate any errors when deployed, but none of the instances show up in the JBoss/Admin/Management Portlet. Consequently, attempts to view the custom portal in a browser results in "Object not found <missing instance name>" in all window locations.

      Here is an excerpt from the *-object.xml file for the custom portal:
      ------------
      ...
      <window-name>HomePageContentWindow</window-name>
      <instance-ref>HomePageContentInstance</instance-ref>
      ....
      <instance-name>HomePageContentInstance</instance-name>
      <component-ref>CMSDisplay.CMSDisplayPortlet</component-ref>
      ...
      ------------

      Please note that 'CMSDisplay.CMSDisplayPortlet' is referencing a custom portlet that is deployed in a different war file.

      For some reason, the 'HomePageContentInstance' is not created.

      I can create the 'HomePageContentInstance' manually by using the JBoss/Admin/Management Portlet interface.

      Has the parsing of the *-object.xml file and/or instance creation changed in some way with JBoss Portal 2.4 Beta1?

      thx!

        • 1. Re: JBoss Portal 2.4 Beta1: portlet instances not created
          Rali Genova Novice

          I am not sure where your problem is coming from, but Portal 2.4 and above should be deployed on JBoss 4.0.4 and above, try this setup and report any errors you might encounter. Please include your full object.xml file and any related descriptors, as well as stack traces from the server logs.



          • 2. Re: JBoss Portal 2.4 Beta1: portlet instances not created
            mike moses Newbie

            As per your recommendation, I am installing JBoss 4.0.4 GA right now. If I encounter any errors, I'll follow up with xml files and stack traces.

            BTW, I see that the jboss-portal-2.4.0-BETA1-src contains a file named portlet-instances.xml located in the following directories:
            ..\core\src\resources\portal-cms-war\WEB-INF
            ..\core\src\resources\portal-core-war\WEB-INF
            ..\core\src\resources\portal-samples-war\WEB-INF

            Is the portlet-instances.xml a new file for the BETA1 version or has it been included for legacy support?

            If it is a BETA1 file, should the portlet instances be defined in the *object.xml file or the portlet-instances.file?

            The reason I ask is because it appears the PortalAppDeployment.java source file (..\core\src\main\org\jboss\portal\core\deployment\jboss) has been revised in the BETA1 version to use the portal-instances.xml file.

            thx!