9 Replies Latest reply on Dec 17, 2010 8:29 AM by mikael.brodd

    Add JSF Capabilities in Eclipse says web.xml is malformed

    mikael.brodd

      Hi,

       

      Trying to add JSF capabilities as described in the FAQ in Eclipse. The wizard says that

       

      Web descriptor file is corrupted : Element type "dispatcher" must be declared

       

      This corresponds to the following in web.xml:

       

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

       

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

       

      What to do?