[jboss-user] [JBoss Seam] - Seam 2 and portlets

earniedyke do-not-reply at jboss.com
Thu Nov 15 15:59:35 EST 2007


Greetings all,

Thanks to what I can only think was some very diligent work there is now an example of Seam 2.0 with portlets. I downloaded the example and have tried to duplicate the success with a JBP 2.62.GA/Seam 2.0.0.GA app that I have built.  I have the jsf-portlet-bridge jars in WEB-INF\lib.

I am getting the following exception however and I have been unable to resolve it. Anyone have any ideas what I could be doing wrong?

Thanks in advance for any and all help!!

Earnie!

2007-11-15 15:42:04,593 DEBUG [org.jboss.portal.portlet.container.javax_portlet_faces_GenericFacesPortlet] Loading portlet class javax.portlet.faces.GenericFacesPortlet
  | 2007-11-15 15:42:04,625 DEBUG [org.jboss.portal.portlet.container.javax_portlet_faces_GenericFacesPortlet] Creating portlet object javax.portlet.faces.GenericFacesPortlet
  | 2007-11-15 15:42:04,656 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet WAITnCPortlet threw a runtime exception during init
  | 2007-11-15 15:42:04,656 ERROR [STDERR] 	at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:264)
  | 2007-11-15 15:42:04,656 ERROR [STDERR] 	at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:130)
  | 2007-11-15 15:42:04,656 ERROR [STDERR] 	at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:150)
  | 2007-11-15 15:42:04,656 ERROR [STDERR] 	at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:95)
  | 2007-11-15 15:42:04,656 ERROR [STDERR] 	at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
  | 2007-11-15 15:42:04,656 ERROR [STDERR] 	at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
  | 2007-11-15 15:42:04,656 ERROR [STDERR] 	at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at sun.reflect.GeneratedMethodAccessor229.invoke(Unknown Source)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at $Proxy217.deploy(Unknown Source)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:53)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:160)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  | 2007-11-15 15:42:04,671 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at $Proxy220.handleNotification(Unknown Source)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 2007-11-15 15:42:04,687 ERROR [STDERR] 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at $Proxy201.start(Unknown Source)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 2007-11-15 15:42:04,718 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at $Proxy9.deploy(Unknown Source)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] Caused by: java.lang.ClassCastException: javax.portlet.faces.GenericFacesPortlet
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:231)
  | 2007-11-15 15:42:04,734 ERROR [STDERR] 	... 74 more
  | 

<?xml version="1.0" encoding="UTF-8"?>
  | <portlet-app
  | 	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>
  | 		<portlet-name>WAITnCPortlet</portlet-name>
  | 		<portlet-class>
  | 			javax.portlet.faces.GenericFacesPortlet
  | 		</portlet-class>
  | 		<init-param>
  | 			<name>javax.portlet.faces.defaultViewId.view</name>
  | 			<value>/home.xhtml</value>
  | 		</init-param>
  | 
  | 		<expiration-cache>-0</expiration-cache>
  | 		<supports>
  | 			<mime-type>text/html</mime-type>
  | 			<portlet-mode>VIEW</portlet-mode>
  | 		</supports>
  | 		<portlet-info>
  | 			<title>WAITnC Portlet</title>
  | 		</portlet-info>
  | 	</portlet>
  | </portlet-app>

<?xml version="1.0" encoding="UTF-8"?>
  | <application xmlns="http://java.sun.com/xml/ns/javaee"
  | 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  | 	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
  | 	version="5">
  | 
  | 	<display-name>WAITnC</display-name>
  | 
  | 	<module>
  | 		<web>
  | 			<web-uri>WAITnC.war</web-uri>
  | 			<context-root>/WAITnC</context-root>
  | 		</web>
  | 	</module>
  | 
  | 	<module>
  | 		<ejb>WAITnC.jar</ejb>
  | 	</module>
  | 
  | 	<!-- Seam and EL -->
  | 	<module>
  | 		<ejb>jboss-seam.jar</ejb>
  | 	</module>
  | 	<module>
  | 		<java>jsf-facelets.jar</java>
  | 	</module>
  | 	<module>
  | 		<java>drools-core.jar</java>
  | 	</module>
  | 	<module>
  | 		<java>drools-compiler.jar</java>
  | 	</module>
  | 	<module>
  | 		<java>janino.jar</java>
  | 	</module>
  | 	<module>
  | 		<java>jbpm-jpdl.jar</java>
  | 	</module>
  | 	<module>
  | 		<java>mvel14.jar</java>
  | 	</module>
  | 	<module>
  | 		<java>antlr.jar</java>
  | 	</module>
  | 
  | </application>
  | 

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

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



More information about the jboss-user mailing list