[jboss-user] [JBoss Portal] - org.jboss.portal.portlet.container.PortletInitializationExce

klsateesh do-not-reply at jboss.com
Wed Aug 16 09:51:56 EDT 2006


Hi All,

  I am trying to deploy a Sample Portlet App in JBoss Portal 2.4.0 CR3 and i am getting the following Exception


  | 09:43:35,812 INFO  [TomcatDeployer] deploy, ctxPath=/jbossPortlet, warUrl=.../tmp/deploy/tmp30826jbossPortlet-exp.war/
  | 09:43:36,030 WARN  [PortalObjectMetaData] Window AssessSamplePortletWindow has security a configuration but it is not ta
  | ken in account, portlet instance configuration should be done rather
  | 09:43:36,046 ERROR [AbstractKernelController] Error installing to Start: name=portal:container=Portlet,id=/jbossPortlet.
  | AssessSamplePortlet state=Create
  | org.jboss.portal.portlet.container.PortletInitializationException: The portlet AssessSamplePortlet threw a runtime excep
  | tion 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.GeneratedMethodAccessor143.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(KernelControllerContextA
  | ctions.java:92)
  |         at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelContro
  | llerContextActions.java:452)
  |         at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(Kern
  | elControllerContextActions.java:147)
  |         at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:5
  | 1)
  |         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:77)
  |         at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$DeploymentContext.start(PortalDeploymentInfo.ja
  | va: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)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |         at $Proxy115.deploy(Unknown Source)
  |         at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:296)
  |         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.server.Invocation.invoke(Invocation.java:86)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |         at $Proxy88.deploy(Unknown Source)
  |         at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:54)
  |         at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:145)
  |         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
  |         at $Proxy116.handleNotification(Unknown Source)
  |         at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.
  | java:127)
  |         at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.ja
  | va:108)
  |         at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
  |         at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
  |         at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
  |         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)
  |         at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
  |         at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
  |         at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
  |         at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java
  | :188)
  |         at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |         at $Proxy93.start(Unknown Source)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
  |         at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
  |         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)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |         at $Proxy8.deploy(Unknown Source)
  |         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
  |         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:26
  | 3)
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
  | 
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
  | Caused by: java.lang.ClassCastException: com.lmco.dpa.AssessSamplePortlet
  |         at org.jboss.portal.portlet.container.PortletContainer.start(PortletContainer.java:249)
  |         ... 101 more
  | 09:43:36,062 WARN  [PortletAppDeployment] Failed to create instance AssessSamplePortletInstance of portlet /jbossPortlet
  | .AssessSamplePortlet
  | 

My Simple Portlet has one method doView() 

  |  protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException {
  |       rResponse.setContentType("text/html");
  |       PrintWriter writer = rResponse.getWriter();
  |       writer.write("Assessment Sample Portlet!");
  |       writer.close();
  |    }
  | 

  Pls let me know hot to resolve this..

Thanks
Sateesh


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

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



More information about the jboss-user mailing list