3 Replies Latest reply on Oct 6, 2006 2:36 PM by Peter Johnson

    Cannot install new Portlet (failes to create instance)

    David Robison Novice

      I am trying to install a new Portlet into JBoss Portal. When I do, I get the following error:

      2006-10-05 16:23:34,281 DEBUG [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Creating portlet instance WebVideoInstance
      2006-10-05 16:23:34,281 DEBUG [org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer] Creating instance WebVideoInstance of portlet local.WebVideo.zkLoader
      2006-10-05 16:23:34,296 WARN [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Failed to create instance WebVideoInstance of portlet WebVideo.zkLoader because portlet WebVideo.zkLoader is not available
      2006-10-05 16:23:34,296 DEBUG [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Failed to create instance WebVideoInstance of portlet WebVideo.zkLoader because portlet WebVideo.zkLoader is not available
      org.jboss.portal.portlet.NoSuchPortletException: No such portlet WebVideo.zkLoader
       at org.jboss.portal.portlet.container.PortletContainerInvoker.getPortlet(PortletContainerInvoker.java:104)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)


      Here are my descriptor files:

      portlet.xml
      <?xml version="1.0"?>
      <portlet>
       <description>ZK loader for ZUML pages</description>
       <portlet-name>zkLoader</portlet-name>
       <display-name>VICADS WebVideo</display-name>
       <portlet-class>org.zkoss.zk.ui.http.DHtmlLayoutPortlet</portlet-class>
       <expiration-cache>0</expiration-cache>
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       </supports>
       <supported-locale>en</supported-locale>
       <portlet-info>
       <title>ZK</title>
       <short-title>ZK</short-title>
       <keywords>ZK,ZUML</keywords>
       </portlet-info>
      </portlet>
      


      portlet-instances.xml
      <?xml version="1.0" standalone="yes"?>
      <deployments>
       <deployment>
       <if-exists>overwrite</if-exists>
       <instance>
       <instance-id>WebVideoInstance</instance-id>
       <portlet-ref>zkLoader</portlet-ref>
       </instance>
       </deployment>
      </deployments>
      


      WebVideo-object.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <deployments>
       <deployment>
       <if-exists>overwrite</if-exists>
       <parent-ref>default</parent-ref>
       <page>
       <page-name>WebVideo</page-name>
       <window>
       <window-name>VICADS WebVideo</window-name>
       <instance-ref>WebVideoInstance</instance-ref>
       <region>center</region>
       <height>0</height>
       </window>
       </page>
       </deployment>
      </deployments>
      


      Any help would be appreciated.
      Ps. This is my first attempt at portlets.

      David