Ajax4jsf + seam + MyFaces + Liferay
nqw2000 Mar 14, 2007 6:54 PMI'm trying to deploy a seam sample into JBoss 4.0.5GA with EJB3 option, and the combined things mentioned in the topic subject. It's okay without Ajax4jsf.
Framework versions:
Ajax4jsf: 1.1.0
seam: 1.2.0.PATCH1
MyFaces: 1.1.5
Liferay: SVN trunk
But, after added the Ajax4jsf filter, .jar, etc. to the project , when I deployed the project, I got the following exception. I did follow the Ajax4jsf doc and put the filter first in the web.xml and added <a4j:page> in my jspx pages.
15:10:29,704 ERROR [jsp] java.lang.ClassCastException: com.liferay.portlet.RenderResponseImpl at com.sun.facelets.FaceletViewHandler.createResponseWriter(FaceletViewHandler.java:364) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:550) at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132) at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:397) at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:377) at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:474) at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:323) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235) at javax.portlet.GenericPortlet.render(GenericPortlet.java:163) at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:333)
I traced into the code, and found out that it's expecting a ServletResponse, but getting a RenderResponseImpl, which caused the cast exception.
Not very sure if this is the right forum to post, or I could create another one in the MyFaces forum.
Thanks for any input.
Nathan