1 Reply Latest reply on Jan 12, 2007 2:45 AM by starksm64

    Help needed on Deploying a Struts Application as a portlet o

    hussain_rangwala

      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 SETLInstanceName of portlet local.SETLAppName.SETLPortletName
      2007-01-12 12:40:37,426 WARN [org.jboss.portal.core.deployment.jboss.PortletAppDeployment] Failed to create instance SETLInstanceName of portlet SETLAppName.SETLPortletName because portlet SETLAppName.SETLPortletName is not available
      



      I have pasted the following deployment descriptors file ...
      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>