2 Replies Latest reply on Mar 22, 2011 4:18 AM by Abdulkerim İnanmış

    java.lang.ClassNotFoundException:org.ajax4jsfFilter

    Abdulkerim İnanmış Novice

      I am using richfaces 4.0.0.20110227-CR1, jsf 2 and maven. I am taking this error.

      I think my web.xml is not correctly confgured. can you help?

      my web.xml is below.

       

      <?xml version="1.0"?>

      <web-app xmlns="http://java.sun.com/xml/ns/javaee"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

             http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

          version="2.5">

       

      <display-name>hasCode.com - Java Server Faces 2 Tutorial</display-name>

          <context-param>

              <param-name>javax.faces.PROJECT_STAGE</param-name>

              <param-value>Development</param-value>

          </context-param>

       

         <context-param>

        <param-name>org.ajax4jsf.SKIN</param-name>

        <param-value>classic</param-value>

      </context-param>

      <filter>

        <display-name>Ajax4jsf Filter</display-name>

        <filter-name>ajax4jsf</filter-name>

        <filter-class>org.ajax4jsf.Filter</filter-class>

      </filter>

      <filter-mapping>

        <filter-name>ajax4jsf</filter-name>

        <servlet-name>Faces Servlet</servlet-name>

        <dispatcher>REQUEST</dispatcher>

        <dispatcher>FORWARD</dispatcher>

        <dispatcher>INCLUDE</dispatcher>

      </filter-mapping>

       

       

          <servlet>

              <servlet-name>Faces Servlet</servlet-name>

              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

          </servlet>

          <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>*.xhtml</url-pattern>

          </servlet-mapping>

       

          <welcome-file-list>

              <welcome-file>/registration.xhtml</welcome-file>

          </welcome-file-list>

       

      </web-app>