0 Replies Latest reply on Jan 12, 2007 3:32 AM by hussain rangwala

    Help needed on Deploying a Struts Application as a portlet

    hussain rangwala Newbie

      Hi
      I am trying to deploy a struts application as a portlet on JBoss portal 2.4.0.GA...I get this error while deploying...Any suggestions will be appreciated

      
      [org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer] Creating instance SETLInstan
      ceName of portlet local.SETLAppName.SETLPortletName
      2007-01-12 12:40:37,426 WARN [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Failed t
      o create instance SETLInstanceName of portlet SETLAppName.SETLPortletName because portlet SETLAppNam
      e.SETLPortletName is not available
      


      I have pasted the following deployment descriptor files below......

      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>
      


      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>
      


      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>
      


      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>
      
      
      


      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>