5 Replies Latest reply on Feb 29, 2008 3:20 PM by rpa_rio

    RichFaces 3.1.4 GA Liferay 4.3

    David Lewis Newbie

      I am trying to get the sample Ajax Portlet to run in Liferay 4.3 and I am having problems with rendering. I receive the exception below. Has any had any success with liferay? Can you point me in the right direction? Any assistance will be greatly appreciated.

      Stack Trace
      15:21:40,012 INFO [PortletViewHandler] Error rendering view by parent ViewHandl
      er, try to render as portlet JSP page
      java.lang.ClassCastException: com.liferay.portlet.RenderRequestImpl
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.
      java:110)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.jav
      a:526)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWra
      pper.java:108)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.j
      ava:216)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWra
      pper.java:108)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.j
      ava:216)
      at org.ajax4jsf.portlet.application.PortletViewHandler.renderView(Portle
      tViewHandler.java:108)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha
      se.java:106)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      at org.ajax4jsf.portlet.AbstractAjaxBridge.render(AbstractAjaxBridge.jav
      a:118)
      at org.ajax4jsf.portlet.AjaxPortletBridge.renderResponse(AjaxPortletBrid
      ge.java:261)
      at org.ajax4jsf.portlet.AjaxPortletBridge.doFacesRequest(AjaxPortletBrid
      ge.java:186)
      at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesP
      ortlet.java:162)
      at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.ja
      va:136)
      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
      at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortle
      t.java:117)
      at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
      at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServl
      et.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
      atcher.java:687)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
      ispatcher.java:590)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
      patcher.java:505)
      at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:352)
      at com.liferay.portlet.CachePortlet.render(CachePortlet.java:199)
      at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_
      005fportlet_jsp.java:1017)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
      .java:387)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      20)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:261)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at com.liferay.filters.compression.CompressionFilter.doFilter(Compressio
      nFilter.java:125)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFi
      lter(VirtualHostFilter.java:136)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
      atcher.java:687)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
      ispatcher.java:590)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
      patcher.java:505)
      at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1402
      )
      at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1348
      )
      at com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAc
      tion.java:79)
      at com.liferay.portal.action.UpdateLayoutAction.execute(UpdateLayoutActi
      on.java:207)
      at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
      tProcessor.java:431)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
      va:236)
      at com.liferay.portal.struts.PortalRequestProcessor.process(PortalReques
      tProcessor.java:157)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
      6)
      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.
      java:280)
      at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:534)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:95)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:14
      4)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at com.liferay.filters.compression.CompressionFilter.doFilter(Compressio
      nFilter.java:125)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFi
      lter(VirtualHostFilter.java:136)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:179)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
      torBase.java:433)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
      onnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:241)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:580)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
      7)
      at java.lang.Thread.run(Thread.java:595)

        • 1. Re: RichFaces 3.1.4 GA Liferay 4.3
          David Lewis Newbie

          I upgraded to liferay 4.3.3. and I get a different error now it is a null pointer exception which is shown below. As always any help would be appreciated

          STACK TRACE
          2008-02-15 15:52:25,689 INFO [org.ajax4jsf.portlet.application.PortletViewHandler] Error rendering view by parent ViewHandler, try to render as portlet JSP page
          java.lang.NullPointerException
          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:520)
          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:243)
          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:243)
          at org.ajax4jsf.portlet.application.PortletViewHandler.renderView(PortletViewHandler.java:108)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.render(AjaxFacesPortlet.java:317)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.doFacesRequest(AjaxFacesPortlet.java:188)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.doView(AjaxFacesPortlet.java:252)
          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:107)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
          at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:354)
          at com.liferay.portlet.CachePortlet.render(CachePortlet.java:201)
          at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1307)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
          at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1527)
          at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1478)
          at com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:94)
          at com.liferay.portal.action.UpdateLayoutAction.execute(UpdateLayoutAction.java:217)
          at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
          at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
          at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:157)
          at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
          at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
          at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:287)
          at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:522)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:92)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:122)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:144)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:166)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.servlet.filters.sessionid.SessionIdFilter.doFilter(SessionIdFilter.java:85)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:595)
          2008-02-15 15:52:25,689 WARN [javax.enterprise.resource.webcontainer.jsf.lifecycle] executePhase(RENDER_RESPONSE 6,org.ajax4jsf.portlet.context.FacesContextImpl@7584a1) threw exception
          java.lang.NullPointerException
          at org.ajax4jsf.portlet.application.PortletViewHandler.renderView(PortletViewHandler.java:123)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.render(AjaxFacesPortlet.java:317)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.doFacesRequest(AjaxFacesPortlet.java:188)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.doView(AjaxFacesPortlet.java:252)
          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:107)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
          at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:354)
          at com.liferay.portlet.CachePortlet.render(CachePortlet.java:201)
          at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1307)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
          at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1527)
          at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1478)
          at com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:94)
          at com.liferay.portal.action.UpdateLayoutAction.execute(UpdateLayoutAction.java:217)
          at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
          at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
          at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:157)
          at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
          at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
          at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:287)
          at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:522)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:92)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:122)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:144)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:166)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.servlet.filters.sessionid.SessionIdFilter.doFilter(SessionIdFilter.java:85)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:595)
          2008-02-15 15:52:25,704 ERROR [org.ajax4jsf.portlet.AjaxFacesPortlet] Error processing execute lifecycle
          javax.faces.FacesException: java.lang.NullPointerException
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:306)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.render(AjaxFacesPortlet.java:317)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.doFacesRequest(AjaxFacesPortlet.java:188)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.doView(AjaxFacesPortlet.java:252)
          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:107)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
          at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:354)
          at com.liferay.portlet.CachePortlet.render(CachePortlet.java:201)
          at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1307)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
          at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1527)
          at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1478)
          at com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:94)
          at com.liferay.portal.action.UpdateLayoutAction.execute(UpdateLayoutAction.java:217)
          at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
          at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
          at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:157)
          at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
          at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
          at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:287)
          at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:522)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:92)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:122)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:144)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:166)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.servlet.filters.sessionid.SessionIdFilter.doFilter(SessionIdFilter.java:85)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:595)
          Caused by: java.lang.NullPointerException
          at org.ajax4jsf.portlet.application.PortletViewHandler.renderView(PortletViewHandler.java:123)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          ... 74 more
          2008-02-15 15:52:25,736 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ajaxRepeaterPortlet].[ajaxRepeaterPortlet]] Servlet.service() for servlet ajaxRepeaterPortlet threw exception
          javax.portlet.faces.BridgeException: Error processing execute lifecycle
          at org.ajax4jsf.portlet.AjaxFacesPortlet.doFacesRequest(AjaxFacesPortlet.java:207)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.doView(AjaxFacesPortlet.java:252)
          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:107)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
          at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:354)
          at com.liferay.portlet.CachePortlet.render(CachePortlet.java:201)
          at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1307)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
          at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1527)
          at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1478)
          at com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:94)
          at com.liferay.portal.action.UpdateLayoutAction.execute(UpdateLayoutAction.java:217)
          at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
          at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
          at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:157)
          at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
          at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
          at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:287)
          at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:522)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:92)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:122)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:144)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:166)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at com.liferay.portal.servlet.filters.sessionid.SessionIdFilter.doFilter(SessionIdFilter.java:85)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:595)
          Caused by: javax.faces.FacesException: java.lang.NullPointerException
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:306)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.render(AjaxFacesPortlet.java:317)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.doFacesRequest(AjaxFacesPortlet.java:188)
          ... 71 more
          Caused by: java.lang.NullPointerException
          at org.ajax4jsf.portlet.application.PortletViewHandler.renderView(PortletViewHandler.java:123)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          ... 74 more
          2008-02-15 15:52:25,751 ERROR [portal-web.docroot.html.portal.render_portlet.jsp] java.lang.NullPointerException
          at org.ajax4jsf.portlet.application.PortletViewHandler.renderView(PortletViewHandler.java:123)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.render(AjaxFacesPortlet.java:317)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.doFacesRequest(AjaxFacesPortlet.java:188)
          at org.ajax4jsf.portlet.AjaxFacesPortlet.doView(AjaxFacesPortlet.java:252)
          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:107)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
          at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:354)
          at com.liferay.portlet.CachePortlet.render(CachePortlet.java:201)
          at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1307)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

          • 2. Re: RichFaces 3.1.4 GA Liferay 4.3
            David Lewis Newbie

            Here are my config files

            web.xml

            <?xml version="1.0"?>
            <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
             <description>Facelets StarterKit</description>
             <display-name>ServerAdminPortlet</display-name>
             <context-param>
             <param-name>org.richfaces.SKIN</param-name>
             <param-value>emeraldTown</param-value>
             </context-param>
             <context-param>
             <param-name>facelets.VIEW_MAPPINGS</param-name>
             <param-value>*.xhtml</param-value>
             </context-param>
             <context-param>
             <param-name>org.richfaces.LoadStyleStrategy</param-name>
             <param-value>ALL</param-value>
             </context-param>
             <context-param>
             <param-name>org.richfaces.LoadScriptStrategy</param-name>
             <param-value>ALL</param-value>
             </context-param>
             <context-param>
             <param-name>org.ajax4jsf.RESOURCE_URI_PREFIX</param-name>
             <param-value>rfRes</param-value>
             </context-param>
             <context-param>
             <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
             <param-value>server</param-value>
             </context-param>
             <!-- Facelet configuration -->
             <context-param>
             <param-name>facelets.DEVELOPMENT</param-name>
             <param-value>false</param-value>
             </context-param>
             <context-param>
             <param-name>facelets.SKIP_COMMENTS</param-name>
             <param-value>true</param-value>
             </context-param>
             <!-- needed for portlet environment -->
             <context-param>
             <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
             <param-value>org.ajax4jsf.portlet.application.FaceletPortletViewHandler</param-value>
             </context-param>
             <context-param>
             <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
             <param-value>false</param-value>
             </context-param>
             <!-- Use Documents Saved as *.xhtml
             RichFaces and ajax4jsf settings -->
             <filter>
             <display-name>Ajax4jsf Filter</display-name>
             <filter-name>ajax4jsf</filter-name>
             <filter-class>org.ajax4jsf.Filter</filter-class>
             </filter>
             <filter-mapping>
             <filter-name>ajax4jsf</filter-name>
             <servlet-name>FacesServlet</servlet-name>
             <dispatcher>REQUEST</dispatcher>
             <dispatcher>FORWARD</dispatcher>
             <dispatcher>INCLUDE</dispatcher>
             </filter-mapping>
             <listener>
             <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
             </listener>
             <servlet>
             <servlet-name>FacesServlet</servlet-name>
             <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
             <load-on-startup>1</load-on-startup>
             </servlet>
             <servlet-mapping>
             <servlet-name>FacesServlet</servlet-name>
             <url-pattern>/faces/*</url-pattern>
             </servlet-mapping>
             <session-config>
             <session-timeout>30</session-timeout>
             </session-config>
             <mime-mapping>
             <extension>svg</extension>
             <mime-type>image/svg+xml</mime-type>
             </mime-mapping>
             <login-config>
             <auth-method>BASIC</auth-method>
             </login-config>
            </web-app>
            


            faces-config.xml
            <?xml version="1.0" encoding="UTF-8"?>
            <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:xi="http://www.w3.org/2001/XInclude"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
             <managed-bean>
             <managed-bean-name>applicationBean</managed-bean-name>
             <managed-bean-class>com.medpro.beans.ApplicationBean</managed-bean-class>
             <managed-bean-scope>application</managed-bean-scope>
             <managed-property>
             <property-name>serviceLocator</property-name>
             <property-class>com.medpro.services.ServiceLocator</property-class>
             <value>#{serviceLocatorBean}</value>
             </managed-property>
             </managed-bean>
             <managed-bean>
             <managed-bean-name>serviceLocatorBean</managed-bean-name>
             <managed-bean-class>com.medpro.beans.ServiceLocatorBean</managed-bean-class>
             <managed-bean-scope>application</managed-bean-scope>
             </managed-bean>
             <managed-bean>
             <managed-bean-name>sessionBean</managed-bean-name>
             <managed-bean-class>com.medpro.beans.SessionBean</managed-bean-class>
             <managed-bean-scope>session</managed-bean-scope>
             <managed-property>
             <property-name>serviceLocator</property-name>
             <property-class>com.medpro.services.ServiceLocator</property-class>
             <value>#{serviceLocatorBean}</value>
             </managed-property>
             </managed-bean>
             <application>
             <view-handler>org.ajax4jsf.portlet.application.PortletViewHandler</view-handler>
             <state-manager>org.ajax4jsf.portlet.application.PortalStateManager</state-manager>
             </application>
            </faces-config>
            


            portlet.xml
            <?xml version="1.0"?>
            <portlet-app
             xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
             version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
            
             <portlet>
             <portlet-name>ServerAdminPortlet</portlet-name>
             <display-name>Server Admin Portlet</display-name>
            
             <portlet-class>
             javax.portlet.faces.GenericFacesPortlet
             </portlet-class>
            
             <!-- The "home page" of your JSF application -->
             <!-- This is a required param. -->
             <init-param>
             <name>javax.portlet.faces.defaultViewId.view</name>
             <value>/main.xhtml</value>
             </init-param>
             <init-param>
             <name>javax.portlet.faces.defaultViewId.help</name>
             <value>/help.xhtml</value>
             </init-param>
            
            
             <!-- disable portlet caching -->
             <expiration-cache>-1</expiration-cache>
            
             <supports>
             <mime-type>text/html</mime-type>
             <portlet-mode>view</portlet-mode>
             <portlet-mode>help</portlet-mode>
             <!--
             <portlet-mode>edit</portlet-mode>
            
             -->
             </supports>
             <portlet-info>
             <title>Server Admin Portlet</title>
             <short-title>Server Admin Portlet</short-title>
             <keywords>Server Admin Portlet</keywords>
             </portlet-info>
             <security-role-ref>
             <role-name>administrator</role-name>
             </security-role-ref>
             <security-role-ref>
             <role-name>guest</role-name>
             </security-role-ref>
             <security-role-ref>
             <role-name>power-user</role-name>
             </security-role-ref>
             <security-role-ref>
             <role-name>user</role-name>
             </security-role-ref>
             </portlet>
            
            
            </portlet-app>
            


            • 3. Re: RichFaces 3.1.4 GA Liferay 4.3
              Ilya Shaikovsky Master

              you use two view handlers.. View Handler defined in web.xml will be first in chain(right after ajax4jsf one) before the one defined in faces-config.

              Make sure that it is right for your case.

              • 4. Re: RichFaces 3.1.4 GA Liferay 4.3
                David Lewis Newbie

                 

                "ilya_shaikovsky" wrote:
                you use two view handlers.. View Handler defined in web.xml will be first in chain(right after ajax4jsf one) before the one defined in faces-config.

                Make sure that it is right for your case.


                Thanks I didn't notice that.

                I tried removing it from web.xml and faces-config still the same result.

                A Class Cast Exception

                • 5. Re: RichFaces 3.1.4 GA Liferay 4.3
                  rpa_rio Novice

                  If you are using Facelets you must implement a FaceletPortletViewHandler, you can find some example code about how to write this ViewHandler by checking th sample code that comes with facelets zipfile.

                  facelets-x.x.xx.zip\facelets-x.x.xx\demo\portlet\src\com\sun\facelets