1 Reply Latest reply on Sep 1, 2011 6:45 AM by giofyxle

    Problem switching from ajax4jsf-1.1.1 to richfaces-3.3.1

    giofyxle Newbie

      Hallo Users

       

       

      My webapp (WebSphere6.1 jsf1.2 tomahawk facelets) runs with ajax4jsf-1.1.1.

      I tried to exchange ajax4jsf with richfaces.

       

      To to this I did the following:

       

      1.     Exchange the jars: in the pom.xml I replaced

       

              <dependency>

                  <groupId>de.safir.alteVersionen.tfa</groupId>

                  <artifactId>ajax4jsf</artifactId>

                  <version>1.1.1</version>

                  <scope>compile</scope>

              </dependency>

       

          with:

       

              <dependency>

                <groupId>org.richfaces.framework</groupId>

                <artifactId>richfaces-impl</artifactId>

                <version>3.3.1.GA</version>

              </dependency>

             

              <dependency>

                <groupId>org.richfaces.framework</groupId>

                <artifactId>richfaces-api</artifactId>

                <version>3.3.1.GA</version>

              </dependency>

             

              <dependency>

                <groupId>org.richfaces.ui</groupId>

                <artifactId>richfaces-ui</artifactId>

                <version>3.3.1.GA</version>

              </dependency>

       

       

      2. in my xhtml-files I exchanged the namespace for <a4j:

       

          My old xhtml-files contained:

              xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">

          I changed to:

              xmlns:a4j="http://richfaces.org/a4j">

               

               

               

       

       

      Now starting my web app I get the following errors:

       

       

      [26.08.11 11:56:45:556 CEST] 0000001d ServletWrappe E   SRVE0068E: Es wurde eine Ausnahme angefangen, die in einer der Servicemethoden des Servlet Faces Servlet ausgelöst wurde. Ausgelöste Ausnahme: java.lang.NoSuchMethodError: javax/faces/render/ResponseStateManager.getState(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljava/lang/Object;

          at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:419)

          at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:307)

          at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)

          at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:107)

          at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:158)

          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)

          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)

          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)

          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)

          at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)

          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)

          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:840)

          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:683)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:589)

          at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:533)

          at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)

          at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)

          at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)

          at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)

          at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)

          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)

          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)

          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)

          at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)

          at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)

          at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

          at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

          at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

          at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)

          at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)

          at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)

          at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)

          at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)

       

      [26.08.11 11:56:45:607 CEST] 0000001d ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC hat die Datenstromdatei C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_0000001d_11.08.26_11.56.45_0.txt für das Ereignis geöffnet.

      [26.08.11 11:56:45:640 CEST] 0000001d ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC hat die Datenstromdatei C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_0000001d_11.08.26_11.56.45_0.txt für das Ereignis geschlossen.

      [26.08.11 11:56:45:656 CEST] 0000001d ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC hat die Datenstromdatei C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_0000001d_11.08.26_11.56.45_1.txt für das Ereignis geöffnet.

      [26.08.11 11:56:45:677 CEST] 0000001d ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC hat die Datenstromdatei C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_0000001d_11.08.26_11.56.45_1.txt für das Ereignis geschlossen.

      [26.08.11 11:56:45:680 CEST] 0000001d BaseXMLFilter E org.ajax4jsf.webapp.BaseXMLFilter doXmlFilter Exception in the filter chain

                                       javax.servlet.ServletException: javax/faces/render/ResponseStateManager.getState(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljava/lang/Object;

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1264)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)

          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)

          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)

          at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)

          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)

          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:840)

          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:683)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:589)

          at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:533)

          at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)

          at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)

          at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)

          at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)

          at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)

          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)

          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)

          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)

          at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)

          at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)

          at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

          at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

          at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

          at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)

          at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)

          at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)

          at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)

          at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)

      ---- Begin backtrace for Nested Throwables

      java.lang.NoSuchMethodError: javax/faces/render/ResponseStateManager.getState(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljava/lang/Object;

          at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:419)

          at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:307)

          at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)

          at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:107)

          at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:158)

          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)

          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)

          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)

          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)

          at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)

          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)

          at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)

          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:840)

          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:683)

          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:589)

          at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:533)

          at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)

          at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)

          at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)

          at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)

          at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)

          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)

          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)

          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)

          at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)

          at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)

          at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

          at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

          at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

          at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)

          at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)

          at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)

          at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)

          at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)

       

       

      Has someone a hint?

       

      Thanks gio