0 Replies Latest reply on Jan 29, 2008 12:09 PM by rajesha Indurthi

    error while implementing the simple echo rich faces project

    rajesha Indurthi Newbie

      Iam trying to add in the rich faces , implementing simple echo project in my already existing jsf application.

      I made all the changes, as shown in the tutorial .
      As my original jsf application was using
      <!DOCTYPE web-app PUBLIC
      "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd" >

      dtd signature in the web.xml , instead of the
      <?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">

      as shown in the simple echo project tutorial , I changed it.
      I called the simple echo project jsp file from a jsp page in my application like this :

      <h:outputLink value="/workbench/help/demoRichFaces.faces" target="_blank">
      <h:outputText value="testRichFaces"/>
      </h:outputLink>

      the simple echo project jsp page is working fine, but when I try to access the rest of my application it is throwing thefollowing error :

      java.lang.ClassCastException: com.sun.faces.el.MethodBindingImpl incompatible with javax.faces.convert.Converter
      at javax.faces.component.UIOutput.restoreState(UIOutput.java:180)
      at javax.faces.component.html.HtmlOutputLink.restoreState(HtmlOutputLink.java:839)
      at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1041)
      at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1053)
      at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1053)
      at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1053)
      at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:246)
      at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:305)
      at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
      at org.ajax4jsf.application.AjaxViewHandler.restoreView(AjaxViewHandler.java:159)
      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:989)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
      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:761)
      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:673)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
      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:195)
      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)

      Is it a version conflict thing ? what is going wrong . the jsf application is getting deployed , Iam able to access the echo project jsp page , but when I try to access any of my old jsf application sit is throwing the above exception .
      Any help would be appreciated.
      thanks in advance!!!