1 Reply Latest reply on Nov 20, 2010 8:24 AM by iabughosh

    deploying jsf richfaces application on jboss 5.1

    eve_fang

      Hi,

       

      Im having problem with richfaces on jboss5.1. When i click the a4j components, it will return me the following error:

      SEVER [lifecycle] JSF1054: (PhaseID: RESTORE_VIEW 1, View ID: )Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl1b35c58]
      ERROR Exception in the filter chain
      javax.servlet.ServletException: viewId: /tracks/trackList.jsf - View /tracks/trackList.jsf could not be restored.
      ....
      ....
      Caused by javax.faces.application.ViewExpiredException: viewId: /tracks/trackList.jsf - View /tracks/trackList.jsf could not be restored.
      

       

       

      i have try to use the following solutions, all these solution resolve the issue for ViewExpiredException, but however, my application lose it session object.

      <context-param>
              <param-name>facelets.BUILD_BEFORE_RESTORE</param-name>
              <param-value>true</param-value>
          </context-param>

       

       

      I have no problem running the application on jboss 4.2.3.

      Any solution to resolve this?

        • 1. Re: deploying jsf richfaces application on jboss 5.1
          iabughosh

          hi eve,

          try to comment this tag in ${jboss-home}/server/${server-config}/deployers/jbossweb.deployer/web.xml,

           

          <!--<listener>
               <listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>
             </listener>-->

            <listener>

               <listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>

             </listener>