title: welcome-file-list being ignored by server?
body: <p>I am having problems trying to reconfigure the welcome page of a project I've joined recently.
  Using JBoss 7 and Wildfly 10 to test the application, but both servers fail the same way.</p>
  
  <p>I want to be able to access my webapp by using this URL:</p>
  
  <pre><code>http://localhost:8080/MaisAcoes/
  </code></pre>
  
  <p>And I want this URL to display the "index.xhtml" page.</p>
  
  <p>Problem is: the server always displays error 404 while trying to open "index.jsf" (as this page does not exist). It doesn't open the "index.xhtml" page.</p>
  
  <p><strong>web.xml</strong>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app id="WebApp_ID" version="3.1"
      xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"&gt;
      &lt;display-name&gt;MaisAcoes&lt;/display-name&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;index.xhtml&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>The index.xhtml page is located at the WebContent folder and deployed correctly... If I try to access the page directly (<a href="http://localhost:8081/MaisAcoes/index.xhtml" rel="nofollow">http://localhost:8081/MaisAcoes/index.xhtml</a>), the page opens successfully.</p>
  
  <p>What am I missing..?</p>