title: Why FacesServlet cannot have a url-pattern of /*.?
body: <p>This is my web.xml :</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  <p>When I navigate to:</p>
  <pre><code>http://localhost:8080/LearningRoot/index.xhtml
  </code></pre>
  <p>I can see the page just fine, however when I navigate to:</p>
  <pre><code>http://localhost:8080/LearningRoot/
  </code></pre>
  <p>I get the error:</p>
  <blockquote>
  <p>An Error Occurred:</p>
  <p><strong>The FacesServlet cannot have a url-pattern of /*. Please define a different url-pattern.</strong></p>
  </blockquote>
  <p>But why?</p>
  <p>And this is my welcome file:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;welcome-file-list&gt;
      &lt;welcome-file&gt;/index.xhtml&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>