Combination View Flat View Tree View
Threads [ Previous | Next ]
julien Chu
Tomahawk MyFaces Liferay ClassCastException
March 26, 2008 7:25 AM
Answer

julien Chu

Rank: New Member

Posts: 7

Join Date: March 26, 2008

Recent Posts

Hi all,
I have tried a lot of things but still can't solve this problem
I tried to make Tomahawk MyFaces 1.1.5 and Liferay working together
My project is working fine as a servlet on Tomcat
I have no error during deployment into Liferay but
when I try to reach any page of my project with Tomahawk components from Liferay I have this error:

java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade
at com.sun.facelets.FaceletPortletViewHandler.createResponseWriter(FaceletPortletViewHandler.java:29)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:550)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:100)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)


I think that this problem deals with the Extension Filter but I am not sure.
I saw that it is a well known issue but everybody seems to have solve it .
So if someone can help me it would be great

Thanks in advance
Julien