1 Reply Latest reply on Oct 4, 2007 3:18 PM by dhoward0000

    Problem creating a portlet instance in JBoss Portal 2.6

    ikazarno

      Hi,

      I try to migrate from JBoss Portal 2.2.1 to 2.6 and have a problem creating a portlet instance. I reference to the portlet in portelt-instances.xml : <portlet-ref> portletapp.myportlet</portlet-ref>. The portlet is a part of a web application called portletapp. The deployment descriptor portlet-instances.xml is a part of other web application called deplapp. I get following error message while deploying the web application containing the deployment descriptor: ?Failed to create instance myportletInstance of portlet deplapp.portletapp.myportlet because portlet deplapp.portletapp.myportlet is not available?. How can I create an instance of a portlet that deployed in the other web application?

      Thanks for help!

        • 1. Re: Problem creating a portlet instance in JBoss Portal 2.6
          dhoward0000

          In order to use a portlet in a different webapp I had to create the instance in the webapp that owns that code. Jboss could load the webapps in any order, so trying to create an instance from a portlet thats not loaded wouldn't work.

          So i ended up just putting the portlet-instances.xml entry in the owner webapp - and then referenced that instance id in my *-object.xml.

          Hope that helps.