4 Replies Latest reply on Jun 17, 2010 4:18 PM by Jan Tosovsky

    [Facelets] XHTML parse error when RichFaces filter in web.xml is specified

    Jan Tosovsky Newbie



      I use NetBeans and now I do some initial experiments with RichFaces.


      I've tried to create a new RichFaces project according to RF's Getting Started:  http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/GettingStarted.html


      When I create a new Web application targeted to Java EE 5 and Tomcat 6.0.20 and I select 'JavaServer Faces' framework with JSF 2.0 libraries and preferred page language JSP, it works fine.


      If I create another application with the same settings, but I use the Facelets page language instead of JSP, the final page is not rendered



      <?xml version='1.0' encoding='UTF-8' ?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


      <html xmlns="http://www.w3.org/1999/xhtml"



              <title>Facelet Title</title>



              Hello from Facelets


      </html xmlns="http://www.w3.org/1999/xhtml">


      Note that parsing error in the namespace of the last closing tag.


      I've tried to uncomment RichFaces <filter> and <filter-mapping> tags from web.xml and my problem has dissapeared.


      The problem seems to be in filtering, but I don't know if this is a problem of my settings (NetBeans/Tomcat/Facelets)/filtering code/or whatever else.


      Has anybody any experience with this?