Ajuda com JSF! Iniciante

Pessoal, estou começando a dar meus passos com JSF, estou tendo um problema Simples mas não consigo encontrar o erro, vcs podem me ajudar… é o seguinte peguei um exemplo da NET do site do EXADEL… meus arquivos estão assim:

WEB.XML


<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	<display-name>EstudoJSF</display-name>
	
	  <!-- Faces Servlet -->
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>


    <!-- mapeamento por extensao -->
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>


    <!-- arquivos de indice da pasta virtual-->
    <welcome-file-list>
       <welcome-file>pages/index.jsf</welcome-file>
       <welcome-file>pages/index.jsp</welcome-file>
       <welcome-file>pages/index.html</welcome-file>
    </welcome-file-list>
    
     <!-- JSF Tag Library Descriptors -->
  <taglib>
    <taglib-uri>/tags/html_basic</taglib-uri>
    <taglib-location>/WEB-INF/html_basic.tld</taglib-location>
  </taglib>

  <taglib>
    <taglib-uri>/tags/jsf_core</taglib-uri>
    <taglib-location>/WEB-INF/jsf_core.tld</taglib-location>
  </taglib>
    
    
</web-app>

E minha JSP está assim:


<%@ taglib uri="/tags/html_basic" prefix="h" %>
<%@ taglib uri="/tags/jsf_core" prefix="f" %>
<f:loadBundle basename="jsfks.bundle.messages" var="msg"/>

<html>
 <head>
  <title>enter your name page</title>
 </head>
 <body>
   <f:view>
     <h1>
      <h:outputText value="#{msg.inputname_header}"/>
     </h1>
     <h:form id="helloForm">
      <h:outputText value="#{msg.prompt}"/>
      <h:inputText value="#{personBean.personName}" />
      <h:commandButton action="greeting" value="#{msg.button_text}" />
     </h:form>
   </f:view>
 </body>
</html>  

O erro que gera é o seguinte:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: File "/tags/html_basic" not found

mas meu mapeamento de TAG esta certo… bom eu acho…

Caso alguém puder ajudar ficarei muito grato…

Abs galera…

subistitua

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

e veja se resolve

Cara valeu pela ajuda…

Então eu troquei e deu o seguinte erro…


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application

Na minha console do Eclipse da o seguinte erro:


org.apache.jasper.compiler.TldLocationsCache processWebDotXml
WARNING: Internal Error: File /WEB-INF/web.xml not found

Procurei na net e não achei algo concreto… alguém poderia ajudar…

Então carinha vc tira este bloco de cógido do seu web.xml q deve resolver

<!-- JSF Tag Library Descriptors -->
   <taglib>
     <taglib-uri>/tags/html_basic</taglib-uri>
     <taglib-location>/WEB-INF/html_basic.tld</taglib-location>
   </taglib>
 
   <taglib>
     <taglib-uri>/tags/jsf_core</taglib-uri>
     <taglib-location>/WEB-INF/jsf_core.tld</taglib-location>
   </taglib>

qualquer coisa posta ai

Então cara já tentei isso tb… mas da o seguinte erro…


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application

Não estou trabalhando com nenhuma ferramenta a não ser com o eclipse será q é por causa disso…

Valeu mesmo pela ajuda robson_vs… estou quebrando muito a kbça :oops:

ñ cara ferramentas são só para facilitar vc pode programar em java só com o bloco de notas se quizer desde q vc tenha a maquina virtual instalada.

mais fala ai vc colocou o s jars direitinho no seu projeto???

Coloquei sim… ta td certo… vou falar oq eu fiz um passo a passo…

No ecplise 3.2 eu criei um “Dynamic Web Project” depois setei ele com o servidor TomCAt 5.0.28…

Criei as JSP’s e configurei o web.xml e o faces-config.xml de acordo com o exemplo.

Estartei o tomcat… ai ele da esse erro…

Valeu mesmo pela ajuda cara…

qual tutorial vc esta seguindo???

Esse aki…

http://www.exadel.com/tutorial/jsf/jsftutorial-kickstart.html

você setou o context no server.xml do tomcat com o caminho correto?
exemplo:

Supondo que seu projeto esteja na raiz do D:
o Caminho_ate_WebContent seria D:\jsfProject\WebContent\

Se ainda assim não funcionar, tentar trocar o parametro path do Context para o nome do seu projeto e recompila, da deploy e restarta o servidor.

cara usa o facelets e usa extensão xhtml no projeto, jsp é muito basicão, no site da caelum tem uns tutorias legais da uma olhada.