[jboss-user] [JBoss Portal] - How to deploy a Seam Portlet?

m.paranjape do-not-reply at jboss.com
Tue Jul 29 08:23:04 EDT 2008


Can any one help me with deploying a seam portlet? I am trying to develope a portlet using Seam and I get the below stack trace when deployed in jboss-portal-2.6.5.

17:35:40,925 INFO  [PortletAppDeployment] Parsing /FinalSeamTesting/jboss-portlet.xml
17:35:40,956 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet seamFinalPortlet threw a runtime exception during init
17:35:40,972 ERROR [STDERR] 	at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:264)
17:35:40,972 ERROR [STDERR] 	at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:135)
17:35:40,972 ERROR [STDERR] 	at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:151)
17:35:40,972 ERROR [STDERR] 	at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:96)
17:35:40,972 ERROR [STDERR] 	at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
17:35:40,972 ERROR [STDERR] 	at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
17:35:40,972 ERROR [STDERR] 	at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
17:35:40,972 ERROR [STDERR] 	at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
17:35:40,972 ERROR [STDERR] 	at $Proxy214.deploy(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
17:35:40,972 ERROR [STDERR] 	at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:53)
17:35:40,972 ERROR [STDERR] 	at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:159)
17:35:40,972 ERROR [STDERR] 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
17:35:40,972 ERROR [STDERR] 	at $Proxy216.handleNotification(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
17:35:40,972 ERROR [STDERR] 	at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
17:35:40,972 ERROR [STDERR] 	at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
17:35:40,972 ERROR [STDERR] 	at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
17:35:40,972 ERROR [STDERR] 	at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
17:35:40,972 ERROR [STDERR] 	at $Proxy195.start(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
17:35:40,972 ERROR [STDERR] 	at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
17:35:40,972 ERROR [STDERR] 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
17:35:40,972 ERROR [STDERR] 	at $Proxy9.deploy(Unknown Source)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
17:35:40,972 ERROR [STDERR] 	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
17:35:40,972 ERROR [STDERR] Caused by: java.lang.ClassCastException: javax.portlet.faces.GenericFacesPortlet
17:35:40,972 ERROR [STDERR] 	at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:231)
17:35:40,972 ERROR [STDERR] 	... 73 more
17:35:40,972 INFO  [PortletAppDeployment] These instances have been found in -object.xml, you should put them in the file D:\Softwares\Jboss\App Server\jboss-portal-2.6.5.SP1-bundled\jboss-portal-2.6.5.SP1\server\default\.\tmp\deploy\tmp33856FinalSeamTesting-exp.war\WEB-INF/portlet-instances.xml
17:35:40,972 INFO  [PortletAppDeployment] <?xml version="1.0" encoding="utf-8" standalone="yes"?>



<instance-id>SeamFinalPortletInstance</instance-id>
<portlet-ref>seamFinalPortlet</portlet-ref>




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

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



More information about the jboss-user mailing list