1 Reply Latest reply on Jun 22, 2007 12:42 PM by sergeysmirnov

    java.lang.ClassCastException: com.sun.faces.application.Appl

    martind1111

      I am trying to get some of the ajax4jsf demos to work inside Tomcat 6.0.13. Here is the error I get when I start the application a4j-simpleRepeator:

      java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate cannot be cast to com.sun.faces.application.ApplicationAssociate
      com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:180)
      com.sun.faces.application.WebappLifecycleListener.getAssociate(WebappLifecycleListener.java:289)
      com.sun.faces.application.WebappLifecycleListener.handleAttributeEvent(WebappLifecycleListener.java:225)
      com.sun.faces.application.WebappLifecycleListener.attributeReplaced(WebappLifecycleListener.java:144)
      org.apache.catalina.connector.Request.setAttribute(Request.java:1444)
      org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:503)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
      org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      java.lang.Thread.run(Thread.java:619)

      I have installed the demo in webapps directory. I have not installed any other libraries. JSF 1.2 Sun RI is present in the lib directory. I am using JDK 6.0u1

      Martin