I had directed Eric over here from the uPortal lists.

It appears that the JSF-Portlet library adds a response wrapper before calling the request dispatcher. Does anyone here know if that is allowed under JSR-168? There is no mention I can find in the spec or errata. I do know in 286 explicit wrapper classes were added that mimic the servlet API wrapper classes but that is all I've been able to find. Should this be viewed as a Pluto bug or a JSF-Portlet bug?

-Eric

Domazlicky, Eric wrote:

I'm trying to deploy a JSR-168 Portlet I built in NetBeans 6.1 using Sun's Reference JSF 1.2 implementation and JSF-Portlet Bridge to a uPortal 3.0 server (which in my understanding uses Pluto 1.1.5). When I attempt to run it I get the casting exception below. Apparently the JSF-Portlet library is wrapping the response before sending it to the dispatcher. Is there any way around this?

Caused by: javax.portlet.PortletException: com.sun.faces.portlet.ViewHandlerPortletRenderResponseWrapper cannot be cast to org.apache.pluto.wrappers.PortletResponseWrapper

at com.sun.faces.portlet.FacesPortlet.renderFaces(FacesPortlet.java:416)

at com.sun.faces.portlet.FacesPortlet.doView(FacesPortlet.java:318)

at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)

at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)

at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:208)

at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)

Caused by: java.lang.ClassCastException: com.sun.faces.portlet.ViewHandlerPortletRenderResponseWrapper cannot be cast to org.apache.pluto.wrappers.PortletResponseWrapper

at org.apache.pluto.internal.impl.InternalImplConverter.getInternalResponse(InternalImplConverter.java:75)

at org.apache.pluto.internal.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:96)

at com.sun.faces.portlet.ExternalContextImpl.dispatch(ExternalContextImpl.java:147)

at com.sun.faces.portlet.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:371)

at com.sun.faces.portlet.ViewHandlerImpl.renderView(ViewHandlerImpl.java:235)

at com.sun.faces.portlet.LifecycleImpl$RenderResponsePhase.execute(LifecycleImpl.java:708)

at com.sun.faces.portlet.LifecycleImpl.phase(LifecycleImpl.java:299)

at com.sun.faces.portlet.LifecycleImpl.render(LifecycleImpl.java:236)

at com.sun.faces.portlet.FacesPortlet.renderFaces(FacesPortlet.java:394)

                ... 25 more

---------------

Eric Domazlicky

Student E-Mail/Portal Administrator

Tacoma Community College

253.460.4380

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to