Index.faces não é aberto automaticamente

Pessoal, estou com um probleminha chato aqui e não estou conseguindo resolver, espero que alguém possa ajudar…

Ao digitar http://localhost:8080/nomeProjeto o tomcat não acha o index e não abre, tenho que digitar toda a url, inclusive o index.faces pra que o projeto abra…

Aqui está meu facesconfig e o web.xml

web.xml:

<?xml version="1.0" encoding="UTF-8"?>   
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   [url]http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">[/url]   
     
  <context-param>   
    <param-name>javax.faces.CONFIG_FILES</param-name>   
    <param-value>/WEB-INF/faces-config.xml</param-value>   
  </context-param>   
  <servlet>   
    <servlet-name>Faces Servlet</servlet-name>   
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>   
    <load-on-startup>0</load-on-startup>   
  </servlet>   
  <servlet-mapping>   
    <servlet-name>Faces Servlet</servlet-name>   
    <url-pattern>*.faces</url-pattern>   
  </servlet-mapping>   
     
     <welcome-file-list>   
      <welcome-file>index.jsp</welcome-file>   
   </welcome-file-list>   
     
</web-app>  

facesconfig:

<?xml version="1.0" encoding="UTF-8"?>   
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">   
  
<faces-config>   
  
<managed-bean>   
      <managed-bean-name>controladorUsuario</managed-bean-name>   
      <managed-bean-class>   
         controller.ControllerUsuario   
      </managed-bean-class>   
      <managed-bean-scope>session</managed-bean-scope>   
   </managed-bean>   
  
   <managed-bean>   
      <managed-bean-name>controladorFuncionario</managed-bean-name>   
      <managed-bean-class>   
         controller.ControllerFuncionario   
      </managed-bean-class>   
      <managed-bean-scope>session</managed-bean-scope>   
   </managed-bean>   
  
   <managed-bean>   
      <managed-bean-name>controladorAutenticacao</managed-bean-name>   
      <managed-bean-class>   
         controller.UtilsController.Autenticacao   
      </managed-bean-class>   
      <managed-bean-scope>session</managed-bean-scope>   
   </managed-bean>   
  
   <managed-bean>   
      <managed-bean-name>utilsController</managed-bean-name>   
      <managed-bean-class>   
         controller.UtilsController.UtilsController   
      </managed-bean-class>   
      <managed-bean-scope>session</managed-bean-scope>   
   </managed-bean>   
  
  
   <navigation-rule>   
      <from-view-id>/index.jsp</from-view-id>   
      <navigation-case>   
         <from-outcome>sucesso</from-outcome>   
         <to-view-id>   
            /content/pages/funcionario/lstFuncionario.jsp   
         </to-view-id>   
      </navigation-case>   
      <navigation-case>   
         <from-outcome>falha</from-outcome>   
         <to-view-id>   
            /index.jsp   
         </to-view-id>   
      </navigation-case>   
   </navigation-rule>   
  
   <navigation-rule>   
      <from-view-id>   
         /content/pages/funcionario/frmCadastrarFunc.jsp   
      </from-view-id>   
      <navigation-case>   
         <from-outcome>sucesso</from-outcome>   
         <to-view-id>   
            /content/pages/funcionario/lstFuncionario.jsp   
         </to-view-id>   
      </navigation-case>   
      <navigation-case>   
         <from-outcome>falha</from-outcome>   
         <to-view-id>   
            /content/pages/funcionario/errFuncionarioDuplicado.jsp   
         </to-view-id>   
      </navigation-case>   
   </navigation-rule>   
  
   <navigation-rule>   
      <from-view-id>   
         /content/pages/usuario/frmCadastrarUser.jsp   
      </from-view-id>   
      <navigation-case>   
         <from-outcome>sucesso</from-outcome>   
         <to-view-id>   
            /content/pages/usuario/lstUsuario.jsp   
         </to-view-id>   
      </navigation-case>   
      <navigation-case>   
         <from-outcome>falha</from-outcome>   
         <to-view-id>   
            /content/pages/usuario/errUsuarioDuplicado.jsp   
         </to-view-id>   
      </navigation-case>   
   </navigation-rule>   
  
   <navigation-rule>   
      <from-view-id>   
         /content/pages/usuario/frmEditarUser.jsp   
      </from-view-id>   
      <navigation-case>   
         <from-outcome>sucesso</from-outcome>   
         <to-view-id>   
            /content/pages/usuario/lstUsuario.jsp   
         </to-view-id>   
      </navigation-case>   
      <navigation-case>   
         <from-outcome>falha</from-outcome>   
         <to-view-id>   
            /content/pages/usuario/lstUsuario.jsp   
         </to-view-id>   
      </navigation-case>   
   </navigation-rule>   
  
   <navigation-rule>   
      <from-view-id>   
         /content/pages/usuario/lstUsuario.jsp   
      </from-view-id>   
      <navigation-case>   
         <from-outcome>editar</from-outcome>   
         <to-view-id>   
            /content/pages/usuario/frmEditarUser.jsp   
         </to-view-id>   
      </navigation-case>   
   </navigation-rule>   
  
   <navigation-rule>   
      <from-view-id>   
         /content/pages/usuario/lstUsuario.jsp   
      </from-view-id>   
      <navigation-case>   
         <from-outcome>remover</from-outcome>   
         <to-view-id>   
            /content/pages/usuario/vsrRemoverUser.jsp   
         </to-view-id>   
      </navigation-case>   
   </navigation-rule>   
  
   <navigation-rule>   
      <from-view-id>   
         /content/pages/usuario/vsrRemoverUser.jsp   
      </from-view-id>   
      <navigation-case>   
         <from-outcome>sucesso</from-outcome>   
         <to-view-id>   
            /content/pages/usuario/lstUsuario.jsp   
         </to-view-id>   
      </navigation-case>   
      <navigation-case>   
         <from-outcome>falha</from-outcome>   
         <to-view-id>   
            /content/pages/usuario/lstUsuario.jsp   
         </to-view-id>   
      </navigation-case>   
   </navigation-rule>   
  
  
   <navigation-rule>   
      <from-view-id>   
         /content/pages/funcionario/frmEditarFunc.jsp   
      </from-view-id>   
      <navigation-case>   
         <from-outcome>sucesso</from-outcome>   
         <to-view-id>   
            /content/pages/funcionario/lstFuncionario.jsp   
         </to-view-id>   
      </navigation-case>   
      <navigation-case>   
         <from-outcome>falha</from-outcome>   
         <to-view-id>   
            /content/pages/funcionario/lstFuncionario.jsp   
         </to-view-id>   
      </navigation-case>   
   </navigation-rule>   
  
   <navigation-rule>   
      <from-view-id>   
         /content/pages/funcionario/lstFuncionario.jsp   
      </from-view-id>   
      <navigation-case>   
         <from-outcome>editar</from-outcome>   
         <to-view-id>   
            /content/pages/funcionario/frmEditarFunc.jsp   
         </to-view-id>   
      </navigation-case>   
   </navigation-rule>   
  
   <navigation-rule>   
      <from-view-id>   
         /content/pages/funcionario/lstFuncionario.jsp   
      </from-view-id>   
      <navigation-case>   
         <from-outcome>remover</from-outcome>   
         <to-view-id>   
            /content/pages/funcionario/vsrRemoverFunc.jsp   
         </to-view-id>   
      </navigation-case>   
   </navigation-rule>   
  
   <navigation-rule>   
      <from-view-id>   
         /content/pages/funcionario/vsrRemoverFunc.jsp   
      </from-view-id>   
      <navigation-case>   
         <from-outcome>sucesso</from-outcome>   
         <to-view-id>   
            /content/pages/funcionario/lstFuncionario.jsp   
         </to-view-id>   
      </navigation-case>   
      <navigation-case>   
         <from-outcome>falha</from-outcome>   
         <to-view-id>   
            /content/pages/funcionario/lstFuncionario.jsp   
         </to-view-id>   
      </navigation-case>   
   </navigation-rule>   
  
</faces-config>  

Aguardo alguma ajuda e agradeço desde já =)

No web.xml você mapeia o tomcat para procurar páginas de “boas vindas” ou páginas default. Você fez isso para o index.jsp

<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>

Basta criar um index.jsp e nele fazer um foward para index.faces

Ok, obrigado! :slight_smile:

Mas veja bem, *.faces é o padrão de URL que você configurou para executar com o JSF. O seu container não saberá identificar e nem abrirá automaticamente este padrão como páginas JSP, você deve executá-los explicitamente…

Só não entendi como você então quer abrir diretamente o index.jsp, você tem que abrir o index.faces mesmo. Você tem que digitar a URL mesmo, ou então fazer que alguma página faça um forward automático