MyFaces Core
  1. MyFaces Core
  2. MYFACES-2395

Cant' run two JSF portlets on the same portal page


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.11, 2.0.8, 2.1.2
    • Component/s: Portlet_Support
    • Labels:
    • Environment:
      JDK 1.5, JBoss AS 4.2.3, eXo PC 2.0.5 or eXO WCM 1.0 or eXO WCM 1.2


      Running two portlets in the same portal page, using JSF and the MyFaces Portlet Bridge (which is the RI for JSR-301, the JSF Portlet Bridge) yelds the error bellow for the second portlet:

      19:31:39,704 ERROR [portletcontainer] exception returned by processAction() or render() methods
      javax.portlet.PortletException: doBridgeDispatch failed: error from Bridge in executing the request
      at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(
      at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(
      at javax.portlet.faces.GenericFacesPortlet.doView(
      at javax.portlet.GenericPortlet.doDispatch(
      at javax.portlet.faces.GenericFacesPortlet.doDispatch(
      at javax.portlet.GenericPortlet.render(
      Caused by: javax.portlet.faces.BridgeException: java.lang.ClassCastException: org.apache.myfaces.renderkit.RenderKitFactoryImpl
      at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRender(
      at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(
      at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(
      ... 63 more
      Caused by: java.lang.ClassCastException: org.apache.myfaces.renderkit.RenderKitFactoryImpl
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getResponseStateManager( 1158)
      at org.apache.myfaces.lifecycle.DefaultRestoreViewSupport.isPostback(
      at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(
      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(
      at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRender(
      ... 65 more

      This exception allways happen with the second portlet on the page, whichever it is. I tried with many portlets, but so you can reproduce the problem I'm attaching the wars for two very simple portlets.

      I'm filling this under MyFaces Core instead of Portlet Bridge because the same applications, if deployed to use Mojarra (included in JBoss AS 4.2) and the same portelt bridge jars, work fine.

      1. hora-mundo-jsf.war
        1.65 MB
        Fernando Silva Lozano
      2. todo-jsf.war
        1.66 MB
        Fernando Silva Lozano



          • Assignee:
            Leonardo Uribe
            Fernando Silva Lozano
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: