11 Replies Latest reply on Apr 28, 2010 4:56 PM by Matthew Fischer

    richfaces 3.3.3.Final and myfaces 2.0.0-beta-3 Set Up - IllegalStateException web.xml?

    Matthew Fischer Newbie

      To All,

       

      I am receiving this error after I add richfaces .jars and additions to the web.xml.

       

      WITHOUT the richfaces .jars and extensions, the page is rendered.

       

      WITH the richfaces .jars and extensions, I receive the follwoing error.  I'm wondering about the warning (MyFaces Extensions Filter should be configured to execute *AFTER* RichFaces filter. Refer to SRV.6.2.4 section of Servlets specification on how to achieve that.).

       

      I attached the web.xml and the simple .jsp page.


      Thanks!

       

      Matt

       

      Apr 15, 2010 6:17:21 PM org.ajax4jsf.webapp.BaseFilter checkMyFacesExtensionsFilter

      WARNING: MyFaces Extensions Filter should be configured to execute *AFTER* RichFaces filter. Refer to SRV.6.2.4 section of Servlets specification on how to achieve that.

      Apr 15, 2010 6:17:21 PM org.apache.myfaces.renderkit.ErrorPageWriter handleThrowable

      SEVERE: An exception occurred

      javax.faces.FacesException

       

      : java.lang.IllegalStateException: setViewHandler may not be executed after a lifecycle request has been completed

      at org.apache.myfaces.context.ExceptionHandlerImpl.wrap(

      ExceptionHandlerImpl.java:241)

      at org.apache.myfaces.context.ExceptionHandlerImpl.handle(

      ExceptionHandlerImpl.java:156)

      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(

      LifecycleImpl.java:163)

      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(

      LifecycleImpl.java:93)

      at javax.faces.webapp.FacesServlet.service(

      FacesServlet.java:189)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

      ApplicationFilterChain.java:290)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(

      ApplicationFilterChain.java:206)

      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(

      ExtensionsFilter.java:285)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

      ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(

      ApplicationFilterChain.java:206)

      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(

      BaseXMLFilter.java:206)

      at org.ajax4jsf.webapp.BaseFilter.handleRequest(

      BaseFilter.java:290)

      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(

      BaseFilter.java:388)

      at org.ajax4jsf.webapp.BaseFilter.doFilter(

      BaseFilter.java:515)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

      ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(

      ApplicationFilterChain.java:206)

      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(

      ExtensionsFilter.java:341)

      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:233)

      at org.apache.catalina.core.StandardContextValve.invoke(

      StandardContextValve.java:191)

      at org.apache.catalina.core.StandardHostValve.invoke(

      StandardHostValve.java:128)

      at org.apache.catalina.valves.ErrorReportValve.invoke(

      ErrorReportValve.java:102)

      at org.apache.catalina.core.StandardEngineValve.invoke(

      StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(

      CoyoteAdapter.java:293)

      at org.apache.jk.server.JkCoyoteHandler.invoke(

      JkCoyoteHandler.java:190)

      at org.apache.jk.common.HandlerRequest.invoke(

      HandlerRequest.java:291)

      at org.apache.jk.common.ChannelSocket.invoke(

      ChannelSocket.java:769)

      at org.apache.jk.common.ChannelSocket.processConnection(

      ChannelSocket.java:698)

      at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(

      ChannelSocket.java:891)

      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(

      ThreadPool.java:690)

      at java.lang.Thread.run(Unknown Source)

      Caused by:

      java.lang.IllegalStateException: setViewHandler may not be executed after a lifecycle request has been completed

      at org.apache.myfaces.application.ApplicationImpl.setViewHandler(

      ApplicationImpl.java:846)

      at org.ajax4jsf.event.InitPhaseListener.beforePhase(

      InitPhaseListener.java:92)

      at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(

      PhaseListenerManager.java:76)

      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(

      LifecycleImpl.java:131)

      ... 29 more

      Apr 15, 2010 6:17:21 PM org.apache.myfaces.renderkit.html.util.DefaultAddResource writeMyFacesJavascriptBeforeBodyEnd

      WARNING: MyFaces special javascript could not be retrieved from request-map.