3 Replies Latest reply: May 23, 2012 4:53 AM by Alain BAUDRY RSS

    Exception encountered using OpenFaces 3 with Portletbridge 3.0.0.Beta2

    Alain BAUDRY Newbie

      Hi,

       

      I am trying to use OpenFaces 3 with PortletBridge 3.0.0.Beta2, RicheFaces 4 and JSF2 but when I introduce the use of OpenFaces in my xhtml pages I encounter the following exception:

      GRAVE: The portlet threw an exception
      java.lang.ClassCastException: org.gatein.pc.portlet.impl.jsr168.api.ResourceRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest
              at org.openfaces.application.OpenFacesResourceHandler.isResourceRequest(OpenFacesResourceHandler.java:108)
              at org.richfaces.resource.ResourceHandlerImpl.isResourceRequest(ResourceHandlerImpl.java:104)
              at javax.faces.application.ResourceHandlerWrapper.isResourceRequest(ResourceHandlerWrapper.java:137)
              at com.sun.faces.application.resource.ResourceImpl.isResourceRequest(ResourceImpl.java:429)
              at com.sun.faces.application.resource.ResourceImpl.getResponseHeaders(ResourceImpl.java:208)
              at javax.faces.application.ResourceWrapper.getResponseHeaders(ResourceWrapper.java:110)
              at org.jboss.portletbridge.application.resource.PortletResourceHandler.handleHeaders(PortletResourceHandler.java:191)
              at org.jboss.portletbridge.application.resource.PortletResourceHandler.handleResourceRequest(PortletResourceHandler.java:132)
              at org.jboss.portletbridge.application.resource.PortletResourceHandler.handleResourceRequest(PortletResourceHandler.java:95)
              at org.jboss.portletbridge.Jsf20Strategy.serveResource(Jsf20Strategy.java:74)
              at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:770)
              at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:510)
              at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:575)
              at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:184)
              at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:84)
              at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)

       

      Is there anyway to get around this problem?

       

      Thank you for any help,

      best regards,

      Alain BAUDRY