Galera estou tentando rodar uma pagina simples com JSF e nao consigo, tenho o meu JSP abaixo:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>TesteJSF</title>
</head>
<body>
<f:view>
<h:form>
<h:outputLabel value="Nome:" />
<h:inputText id="nome" size="50" value="#{cliente.nome}" />
<br>
<h:outputLabel value="RG:" />
<h:inputText id="rg" size="50" value="#{cliente.rg}" />
<br>
<h:outputLabel value="CPF:" />
<h:inputText id="cpf" size="50" value="#{cliente.cpf}" />
<br>
</h:form>
</f:view>
</body>
</html>
Tenho o meu faces-config.xml segue abaixo:
<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<managed-bean>
<managed-bean-name>cliente</managed-bean-name>
<managed-bean-class>Cliente</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>cpf</property-name>
<property-class>java.lang.String</property-class>
<value>""</value>
</managed-property>
<managed-property>
<property-name>nome</property-name>
<property-class>java.lang.String</property-class>
<value>""</value>
</managed-property>
<managed-property>
<property-name>rg</property-name>
<property-class>java.lang.String</property-class>
<value>""</value>
</managed-property>
</managed-bean>
</faces-config>
E o meu bean segue abaixo:
public class Cliente {
private String nome;
private String rg;
private String cpf;
public void setRg(String rg) {
this.rg = rg;
}
public void setNome(String nome) {
this.nome = nome;
}
public void setCpf(String cpf) {
this.cpf = cpf;
}
public String getRg() {
return rg;
}
public String getNome() {
return nome;
}
public String getCpf() {
return cpf;
}
}
Tudo parece estar certo mas quando eu rodo ele da esse erro:
HTTP Status 404 - /TesteJSF/faces/index.jsp
--------------------------------------------------------------------------------
type Status report
message /TesteJSF/faces/index.jsp
description The requested resource (/TesteJSF/faces/index.jsp) is not available.
--------------------------------------------------------------------------------
JBossWeb/2.0.1.GA
Alguem pode me ajudar?