[jboss-user] [Installation, Configuration & Deployment] - org.jboss.portal.portlet.container.PortletInitializationExce

hussain_rangwala do-not-reply at jboss.com
Thu Jan 18 08:46:55 EST 2007


hi,
   Thanks in advance for replying.......
    i am trying  to deploy a struts application as a portlet on jboss portal 2.4.0.GA.
However the application gets deployed successfully and i see the portal-page when i access http://localhost:8080/portal.
However when i click on the portal page It gives an error
  Cannot Render
 "Object not found SETLInstanceName".


  | 2007-01-16 16:35:32,434 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=portal:container=Portlet,id=SETLAppName.SETLPortletName state=Create
  | org.jboss.portal.portlet.container.PortletInitializationException: The portlet SETLPortletName threw a runtime exception during init
  | 	at org.jboss.portal.portlet.container.PortletContainer.start(PortletContainer.java:287)
  | 	at org.jboss.portal.portlet.container.PortletContainerAdapter.start(PortletContainerAdapter.java:74)
  | 	at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.jboss.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(ReflectMethodJoinPoint.java:72)
  | 	at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:92)
  | 	at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelControllerContextActions.java:452)
  | 	at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:147)
  | 	at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  | 	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
  | 	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
  | 	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
  | 	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
  | 	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
  | 	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
  | 	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
  | 	at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:74)
  | 	at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:232)
  | 	at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:79)
  | 	at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$DeploymentContext.start(PortalDeploymentInfo.java:211)
  | 	at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:242)
  | 	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
  | 	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)
  | 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | 
  | 


below are the deployment descriptors:

1.jboss-app.xml

  | <jboss-app>
  |     <app-name>SETLAppName</app-name>
  | </jboss-app>
  | 

2.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>
  | 
  | 

3. portlet.xml


  | <?xml version="1.0" encoding="UTF-8"?>
  | <portlet-app id="SETLAppName" 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-app_1_0.xsd"
  |              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>SETL</keywords>
  |     </portlet-info>
  |   </portlet>
  | </portlet-app>
  | 
  | 

4.portlet-instances.xml

  | <?xml version="1.0" standalone="yes"?>
  | 
  |   <instances>
  |   	<instance>
  |                <instance-name>SETLInstanceName</instance-name>
  |                <component-ref>SETLPortletName</component-ref>
  |         </instance>
  |   </instances>
  |  
  | 

5.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>
  | 

6.SETLAppName-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>
  | 


Any ideas and suggestions will be appreciated
Thanks 
Hussain

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003306#4003306

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003306



More information about the jboss-user mailing list