It's not that MyFaces components can't be used in a WP
portlet, it's the MyFacesGenericPortlet that
subclasses the javax.portlet.GenericPortlet  that
won't work because the WP Portlet Container uses it's
own APIs/classes that are separate and distinct from
the JSR168 Portlet interfaces/classes that
MyFacesGenericPortlet uses.   WP supports both by
having 2 portlet containers, one that can load WP
portlets with the proprietary interfaces/classes and
one that can load JSR168
(javax.portlet.GenericPortlet) portlets.

If you're buildng a WP JSR168 portlet, then you could
use IBM's JSF Portlet or I guess MyFacesGenericPortlet
(although IBM's is in a released/supported product
whereas MyFaces is not yet "final" and still a
milestone release), but the MyFaces components should
work with either.  If you must build a WP JSF portlet
(non-JSR168) then use IBM's WP JSF Portlet and not
MyFacesGenericPortlet.

--- POUSSE Sebastien <[EMAIL PROTECTED]> wrote:

> You're right. I used the project wizard "portlet
> project", not the 
> "JSR168 portlet project". But I didn't think it was
> not compatible.
> Do you reckon Myfaces components should be used only
> in a JSR168 portlet ?
> I have to communicate with other portlets via the
> click2action, and I 
> cannot do that with a JSR168 portlet.
> 
> Sebastien
> 
> IdRatherBeSailing a �crit :
> 
> >The legacy portlet container in that WP stacktrace
> >would lead me to believe that WP believes you're
> >trying to use a WebSphere Portlet (IBM proprietary
> >portlet API), not their JSR168 Portlet container
> and
> >JSR168 portlet.
> >
> >How did you create your portlet WAR and portlet.xml
> >file?
> >
> >--- POUSSE Sebastien <[EMAIL PROTECTED]>
> wrote:
> >
> >  
> >
> >>Thanks for the quick reply
> >>You could find the entire StackTrace at the end of
> >>this mail.
> >>What I understand is :
> >>- the MyFacesGenericPortlet subclasses the
> >>javax.portlet.GenericPortlet 
> >>class
> >>- Websphere uses Jetspeed 1. Jetspeed portlet
> >>subclasses the 
> >>org.apache.jetspeed.portlet.Portlet class.
> >>- Websphere may try to cast the MyFacesPortlet in
> >>PortletAdapter class, 
> >>and fails.
> >>
> >>I tried to use the Websphere class 
> >>(com.ibm.faces.webapp.WPFacesGenericPortlet), but
> >>without success.
> >>
> >>[26/05/05 14:06:41:328 CEST] 35fa7fa3 WebGroup    
> 
> >>E SRVE0020E: 
> >>[Servlet error]-[sebportlet1.MyFacesPortlet]: Le
> >>chargement du servlet a 
> >>�chou�: java.lang.ClassCastException: 
> >>org.apache.myfaces.portlet.MyFacesGenericPortlet
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:646)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:187)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.<init>(WebAppRequestDispatcherInfo.java:68)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1457)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1416)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.wps.pe.om.definition.impl.ServletDefinitionImpl.getRequestDispatcher(ServletDefinitionImpl.java:258)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.wps.pe.pc.legacy.InternalPortletData.getRequestDispatcher(InternalPortletData.java:144)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.callMethod(PortletInvokerImpl.java:405)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:135)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.wps.pe.pc.legacy.PortletContainerImpl.callPortletMethod(PortletContainerImpl.java:1378)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.wps.pe.pc.legacy.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:386)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.wps.pe.pc.PortletContainerImpl.doRenderPortlet(PortletContainerImpl.java:428)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.wps.pe.pc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:102)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.wps.pe.pc.PortletContainer.renderPortlet(PortletContainer.java:95)
> >  
> >
> >>    at
> >>
> >>    
> >>
>
>com.ibm.wps.composition.PortletHolder.render(PortletHolder.java:87)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.wps.engine.tags.PortletRenderTag.doStartTag(PortletRenderTag.java:151)
> >  
> >
> >>    at
> >>
> >>    
> >>
>
>org.apache.jsp._Control._jspService(_Control.java:1870)
> >  
> >
> >>    at 
> >>
> >>    
> >>
>
>com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
> >  
> >
> >>    at
> >>
> >>    
> >>
>
>javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  
> >
> 
=== message truncated ===



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

Reply via email to