2 Replies Latest reply on Jan 4, 2015 5:55 PM by karlnicholas

    Welcome-files always index.jsf instead of index.xhtml

    karlnicholas

      Wildfly 8.2.0.Final. Also using Primefaces 5.1.

       

      I would like the welcome file to be index.xhtml and have the Faces Servlet mapping to .xhtml, but when I try the base URL Wildfly tries to open index.jsf and gives me a 404 error. Any ideas?


      <welcome-file-list>

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

      </welcome-file-list>

      <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>*.xhtml</url-pattern>

      </servlet-mapping>