boa tarde galera to com um pequeno problema comprei a pouco um livro da casa do codigo sobre jsf e jpa. consigui implementar os exercicios com jpa. mas quando passei para o jsf estou com pequeno problema. Vamos ao relato.
1- instalei e configurei o tomcat7.
2- criei um projeto web e configurei para jsf2.0
3- iniciei um projeto com xhtml e a pagina esta assim.
<?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:h="http://java.sun.com/jsf/html"
>
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Cadastro de Automovel.</title>
</h:head>
<h:body>
<h:form>
Marca: <h:inputText/>
</h:form>
</h:body>
</html>
4- quando inicio o tomcat eu entro no localhost da aplicação e não aparece o componentes jsf apenas o que foi escrito em html
5- gostaria de saber com voces que tem mais experiencia on está meu erro.
6- vou postar meu web.xml que eu acredito esta correto.
7- unica jar que tem na lib é o do jsf2.0 que baixei teria que por mais alguns se sim qual ?
<?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>javajsf</display-name>
<welcome-file-list>
<welcome-file>index.html</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>*.jsf</url-pattern>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
</web-app>