4 Replies Latest reply on Mar 31, 2009 12:09 PM by Peter Johnson

    instance not found error on JBoss portal server - URGENT

    Ajay Nakhare Newbie

      Hi,
      I am using boss 4.0.5 server.
      i have created 3 xml files.

      dummy-object.xml

      
      <?xml version="1.0" encoding="UTF-8"?>
      <deployments>
       <deployment>
       <if-exists>overwrite</if-exists>
       <parent-ref>main</parent-ref>
       <page>
       <page-name>dummy-Home</page-name>
      
       <window>
       <window-name>dummy-HeaderPortletWindow</window-name>
       <instance-ref>dummy-HeaderPortletInstance</instance-ref>
       <region>header</region>
       <height>0</height>
       <properties>
       <property>
       <name>theme.windowRendererId</name>
       <value>emptyRenderer</value>
       </property>
       <property>
       <name>theme.decorationRendererId</name>
       <value>emptyRenderer</value>
       </property>
       <property>
       <name>theme.portletRendererId</name>
       <value>emptyRenderer</value>
       </property>
       </properties>
       </window>
       </page>
       </deployment>
      </deployments>
      
      


      portlet-instances.xml

      
      <?xml version="1.0" encoding="UTF-8"?>
      <?xml version="1.0" encoding="UTF-8"?>
      <deployments>
       <deployment>
       <instances>
       <instance>
       <instance-id>dummy-HeaderPortletInstance</instance-id>
       <portlet-ref>dummy-HeaderPortlet</portlet-ref>
       <preferences>
       <preference>
       <name>JSPPage</name>
       <value>/includes/header.jsp</value>
       </preference>
       </preferences>
       </instance>
       </instances>
       </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-ap
      p_1_0.xsd"
       version="1.0">
      
      
      <portlet>
       <portlet-name>dummy-HeaderPortlet</portlet-name>
       <portlet-class>com.PortletDefinitiion</portlet-class>
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       </supports>
       <portlet-info>
       <title>Header Portlet</title>
       </portlet-info>
      </portlet>
      
      </portlet-app>
      
      


      jboss-app.xml, jboss-portlet.xml, jboss-web.xml files are also available in web-inf folder.

      After starting the server when i try to run the app'http://localhost/portal/portal/main/dummy-Home', it says 'Object not found dummy-HeaderPortletInstance'

      Please help me to solve this problem.