title: Error - JSF project with Maven and IntelliJ
body: <h1>What've done</h1>
  
  <p>I've created my <strong>Maven</strong> Project using <strong>IntelliJ</strong> IDE. After that, i had added the <strong>JSF</strong>'s module.</p>
  
  <h1>What's Happening</h1>
  
  <p>I'm trying to execute my web aplication using the <strong>Tomcat</strong> web server.</p>
  
  <p>The URL generated by the webserver is <code>http://localhost:8888/projeto-teste/web/olamundo.xhtml</code>, but the correct form would be `<a href="http://localhost:8888/projeto-teste/olamundo.jsf" rel="nofollow noreferrer">http://localhost:8888/projeto-teste/olamundo.jsf</a>. Besides that, the page stays blank.</p>
  
  <h1>My Project Environment</h1>
  
  <h3>Folder Structure</h3>
  
  <p><a href="https://i.stack.imgur.com/RNasQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RNasQ.png" alt="enter image description here"></a></p>
  
  <h3>Aplication Config</h3>
  
  <p>Confirming my libs folder, IntelliJ knows I have the mojarra instaled.</p>
  
  <p><a href="https://i.stack.imgur.com/PxVsC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PxVsC.png" alt="enter image description here"></a></p>
  
  <h3>helloworld.xhtml</h3>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://xmlns.jcp.org/jsf/html"
        xmlns:f="http://xmlns.jcp.org/jsf/core"&gt;
      &lt;h:head&gt;
          &lt;title&gt;Teste Inicial JSF&lt;/title&gt;
      &lt;/h:head&gt;
      &lt;h:body&gt;
          &lt;h:outputText value="Olá Mundo" /&gt;
          &lt;p&gt;asdsadsa&lt;/p&gt;
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <h3>web.xml</h3>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns="http://java.sun.com/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"
           version="3.1"&gt;
  
      &lt;!--   --&gt;
      &lt;display-name&gt;projeto-teste&lt;/display-name&gt;
  
      &lt;!-- Indica que o JSF(FacesServlet) está instalado e responderá as requisições --&gt;
      &lt;servlet&gt;
          &lt;servelet-name&gt;Faces Servlet&lt;/servelet-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;!-- Mapeamento dos sufixos dos arquivos do front end --&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;!-- Indica a fase de desenvolvimento do projeto. Com o "development", exceptions terão maior descrição --&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;
          &lt;param-value&gt;Development&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;!-- Campos do formulário submitados em branco serão tratados como nulos --&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;javax.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/context-param&gt;
  </code></pre>
  
  <h3>pom.xml</h3>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;groupid-teste&lt;/groupId&gt;
      &lt;artifactId&gt;artifacit-teste&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.7&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <h2>I used this same Project on eclipse and it worked.</h2>