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(Port
letRequestDispatcherImpl.java:96)

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

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

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

                at
com.sun.faces.portlet.LifecycleImpl$RenderResponsePhase.execute(Lifecycl
eImpl.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

Reply via email to