Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-19170

web.xml shows dubious warning on missing welcome file matching Faces mapping

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.Alpha1
    • 4.2.2.Final
    • jsf
    • None
    • Hide
      • Create a new Maven project
      • select richfaces-archetype-simpleapp
      • set GAV and finish. Project gets created
      • ASSERT no warning marker added to web.xml
        => FAIL : "file name references to "faces/index.xhtml" that does not exist in web content"
      Show
      Create a new Maven project select richfaces-archetype-simpleapp set GAV and finish. Project gets created ASSERT no warning marker added to web.xml => FAIL : "file name references to "faces/index.xhtml" that does not exist in web content"

      Given a web project containing index.xhtml at the root of the web folder, an web.xml file containing

         <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
          </servlet>
          <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.jsf</url-pattern>
          </servlet-mapping>
          <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>/faces/*</url-pattern>
          </servlet-mapping>

      and

          
          <welcome-file-list>
              <welcome-file>faces/index.xhtml</welcome-file>
          </welcome-file-list>

      shows an unexpected warning on <welcome-file>:

      file name references to "faces/index.xhtml" that does not exist in web content

            scabanovich Viacheslav Kabanovich (Inactive)
            alexeykazakov Alexey Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: