[jboss-user] [JBoss Portal] - Re: ClassCastException when using MyFacesGenericPortlet

jaboj do-not-reply at jboss.com
Mon Sep 3 09:12:13 EDT 2007


OK, maybe the MyFacesGenericPortlet doesn't care about the Portal version, but nevertheless we get a ClassCastException when the MyFacesGenericPortlet attempts to get a handle to the FacesContext. The exception occurs in the facesContext method:


  | protected FacesContext facesContext(PortletRequest request,
  | 			PortletResponse response)
  | 	{
  | 		return facesContextFactory.getFacesContext(portletContext,
  | 				request,
  | 				response,
  | 				lifecycle);
  | 	}
  | 

In Portal 2.6 the facesContextFactory reference references an instance of com.sun.faces.context.FacesContextFactoryImpl and when the getFacesContext method is invoked on this factory object the ClassCastException occur.

In Portal 2.4 the facesContextFactore references an instance of org.apache.myfaces.context.FacesContextFactoryImpl. Is it possible to change the facesContextFactory implementation for our only application?




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080498#4080498

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080498



More information about the jboss-user mailing list