0 Replies Latest reply on Jan 15, 2007 8:35 AM by hussain rangwala

    help needed on deploying a struts application as a portlet o

    hussain rangwala Newbie

      hi
      i am trying to deploy a struts application as a portlet on JBoss 2.4.0.GA Portal server.however while deploying i get the following error on the console ......Any ideas or suggestions would be of great help.

      Below is the error that i get........


      2007-01-15 09:26:38,093 DEBUG [org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer] Creating instance SETLInstanceName of portlet local.SETLAppName.SETLPortletName
      
      2007-01-15 09:26:38,093 WARN [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Failed to create instance SETLInstanceName of portlet SETLAppName.SETLPortletName because portlet SETLAppName.SETLPortletName is not available
      
      2007-01-15 09:26:38,093 DEBUG [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Failed to create instance SETLInstanceName of portlet SETLAppName.SETLPortletName because portlet SETLAppName.SETLPortletName is not available
      
      org.jboss.portal.portlet.NoSuchPortletException: No such portlet SETLAppName.SETLPortletName
      
       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)
      
      




      These are my deployment descriptor files??..


      1. Portlet.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <portlet-app id="SETLAppName" version="1.0">
      
       <portlet id="SETLPortletName">
       <init-param>
       <name>ServletContextProvider</name>
       <value>org.jboss.portal.bridge.JBossServletContextProvider</value>
       </init-param>
       <init-param>
       <name>ViewPage</name>
       <value>/Login.do</value>
       </init-param>
       <init-param>
       <name>HelpPage</name>
       <value>/signIn.do</value>
       </init-param>
       <portlet-name>SETLPortletName</portlet-name>
       <display-name>SETL Display Name</display-name>
       <description>This is the SETLBAAAAAANK</description>
       <portlet-class>org.apache.portals.bridges.struts.StrutsPortlet</portlet-class>
       <expiration-cache>-1</expiration-cache>
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       <portlet-mode>HELP</portlet-mode>
       </supports>
       <portlet-info>
       <title>SETL Bank Demo</title>
       <short-title>This is the short title</short-title>
       <keywords>Struts</keywords>
       </portlet-info>
       </portlet>
      </portlet-app>
      



      2. portlet-instances.xml
      <?xml version="1.0" standalone="yes"?>
       <deployments>
       <deployment>
       <instance>
       <instance-id>SETLInstanceName</instance-id>
       <portlet-ref>SETLPortletName</portlet-ref>
       </instance>
       </deployment>
       </deployments>
      


      3. SETLAppName-object.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <deployments>
       <deployment>
       <if-exists>overwrite</if-exists>
       <parent-ref>default</parent-ref>
       <page>
       <page-name>SETLAppName</page-name>
       <window>
       <window-name>SETLWindowName</window-name>
       <instance-ref>SETLInstanceName</instance-ref>
       <region>center</region>
       <height>1</height>
       </window>
       </page>
       </deployment>
      
      </deployments>
      



      4.struts-pages.xml
      <pages>
       <portal-name>default</portal-name>
       <page>
       <page-name>SETLStruts</page-name>
       <window>
       <window-name>SETLBankWindowName</window-name>
       <instance-ref>/SETLAppName.SETLPortletName.SETLInstanceName</instance-ref>
       <region>center</region>
       <height>0</height>
       </window>
       </page>
      </pages>
      


      5.jboss-portlet.xml
      <portlet-app>
      
       <portlet>
       <portlet-name>SETLPortletName</portlet-name>
       <!-- Use the specific struts container configuration -->
       <config-name>StrutsPortlet</config-name>
       </portlet>
      </portlet-app>
      




      Any ideas or suggestions would be appreciated?.looking forward for your reply

      Thanks and Regards
      Hussain