[RESOLVIDO]Primefaces não funciona! fica uma tela em branco. TOMCAT

Olá pessoal,

Eu estou tentando utilizar JSF + PrimeFaces, porém ao testar ele me dá uma tela em branco.

Segue o web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
  <display-name>HTML_CSS_JAVASCRIPT</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.xhtml</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</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>
    <url-pattern>*.jsf</url-pattern>
  </servlet-mapping>
  <context-param>
	<param-name>javax.faces.PROJECT_STAGE</param-name>
	<param-value>Development</param-value>
	</context-param>
</web-app>

faces-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<faces-config
    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-facesconfig_2_2.xsd"
    version="2.2">
</faces-config>

index.html

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:p="http://primefaces.org/ui"
	  >
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</h:head>
<h:body>	      
        <p:spinner />  
</h:body>
</html>

Estou quebrando a cabeça e nada, se puderem ajudar eu agradeço.

Notei que você está utilizando um arquivo index.html, ao buscar no navegador você digita index.xhtml ou index.jsf ?

Na verdade eu digito index.html, ai fica a página em branco.

mas testei as outras opções e me retorna o erro The requested resource is not available.

Olha só, digitando .html ele não irá renderizar pois conforme você definiu no seu arquivo web.xml o Faces só renderiza se terminar em .jsf ou .xhtml.

<servlet-mapping>  
    <servlet-name>Faces Servlet</servlet-name>  
    <url-pattern>*.xhtml</url-pattern>  
    <url-pattern>*.jsf</url-pattern>  
  </servlet-mapping>  

No console ao subir a aplicação algo gera erro? qual o caminho buscado na URL do seu navegador?
Um teste legal para identificar se a URL está correta é colocar um arquivo na pasta raiz da sua aplicação e tentar acessá-lo via URL.

[quote=RoxRicardo]Olha só, digitando .html ele não irá renderizar pois conforme você definiu no seu arquivo web.xml o Faces só renderiza se terminar em .jsf ou .xhtml.

<servlet-mapping>  
    <servlet-name>Faces Servlet</servlet-name>  
    <url-pattern>*.xhtml</url-pattern>  
    <url-pattern>*.jsf</url-pattern>  
  </servlet-mapping>  

No console ao subir a aplicação algo gera erro? qual o caminho buscado na URL do seu navegador?
Um teste legal para identificar se a URL está correta é colocar um arquivo na pasta raiz da sua aplicação e tentar acessá-lo via URL.[/quote]

Vlw pelas dicas amigo.

Na verdade o estava faltando javax.faces-2.1.12.jar

Add ao projeto e deu tudo certo.

vlw