f:view tag throws classcast exception if locale attribute is used on a portal 
page
----------------------------------------------------------------------------------

                 Key: MYFACES-1776
                 URL: https://issues.apache.org/jira/browse/MYFACES-1776
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.1.5, 1.1.4
         Environment: Liferay Portal 4.2.2 on Tomcat 5.5 
            Reporter: Primoz Vracko


<f:view locale="sl"> on a faces portlet page throws ClassCastException, trace 
below:

22:14:11,203 ERROR [jsp:52] java.lang.ClassCastException: 
com.liferay.portlet.RenderRequestImpl cannot be cast to 
javax.servlet.ServletRequest
        at 
org.apache.myfaces.taglib.core.ViewTag.setProperties(ViewTag.java:238)
        at 
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:539)
        at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:315)
        at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:73)
        at org.apache.jsp.welcome_jsp._jspService(welcome_jsp.java:138)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        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.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:242)
        at 
com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:83)
        at 
org.apache.myfaces.context.portlet.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:167)
        at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:175)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to