0 Replies Latest reply on Aug 11, 2008 1:38 PM by L Kr

    execption starting tomcat

    L Kr Newbie

      Hi,

      I'm new to RichFaces but can't get it work ;(

      I've added the following jars to my WEB-INF/lib :

      richfaces-api-3.2.0.SR1.jar
      richfaces-impl-3.2.0.SR1.jar
      richfaces-ui-3.2.0.SR1.jar

      and changed the web.xml like this:
      <context-param>
      <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
      <param-value>com.sun.facelets.FaceletViewHandler</param-value>
      </context-param>


      <display-name>RichFaces Filter</display-name>
      <filter-name>richfaces</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>

      <filter-mapping>
      <filter-name>richfaces</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      REQUEST
      FORWARD
      INCLUDE
      </filter-mapping>

      But when I start tomcat I always getting the following error:

      java.lang.NoClassDefFoundError: org/apache/AnnotationProcessor
      com.sun.faces.vendor.Tomcat6InjectionProvider.getProcessor(Tomcat6InjectionProvider.java:129)
      com.sun.faces.vendor.Tomcat6InjectionProvider.invokePreDestroy(Tomcat6InjectionProvider.java:100)
      com.sun.faces.mgbean.BeanBuilder.destroy(BeanBuilder.java:119)
      com.sun.faces.mgbean.BeanManager.destroy(BeanManager.java:248)
      com.sun.faces.application.WebappLifecycleListener.handleAttributeEvent(WebappLifecycleListener.java:228)
      com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:83)
      com.sun.faces.config.ConfigureListener.requestDestroyed(ConfigureListener.java:240)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      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'm using Tomcat 6.0.13 and Facelets (xhtml-sites). The exception even occurs when I only put the richfaces*.jars into the WEB-INF/lib dir without modifing the web.xml. And the class (AnnotationProcessor) is part of the jasper.jar and also catalina.jar in the TOMCAT-HOME/lib dir.

      Thanks for any help
      Lothar