Ola a todos, estou com uma duvida ENORME referente a JSF, JSP e Managed Beans.
Primeiro, não estou conseguindo executar minha aplicação, criei uma página JSP que cadastra numeros de telefone, dentro desta página tem as funções do Managed Beans, criei também o JAVABeans, o Faces-Config.xml esta mapenado apenas o Managed Beans e a Welcome-File, e mesmo assim da erros.
Gostaria de saber quais são os jars necessarios para usar estes recursos e se é necessario mais configurações no Faces-Config.xml e no web.xml (este já gerou algumas coisas sozinho), na criação do projeto coloquei o Framework JSF 2.0.
Segue meu faces-config.xml e o web.xml
[code]<?xml version="1.0" encoding="UTF-8"?>
clienteMB
br.com.rapha.model.Cliente
request
[/code]
<?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" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<display-name>ManagedBeans</display-name>
<welcome-file-list>
<welcome-file>cadastraCliente.jsp</welcome-file>
<welcome-file>default.jsp</welcome-file>
<welcome-file>default.html</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>/faces/*</url-pattern>
</servlet-mapping>
<context-param>
<description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>resources.application</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
</web-app>
Segue a tela de erro
[code]HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:421)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:114)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.14 logs.
Apache Tomcat/7.0.14[/code]
Para evitar mais duvidas segue minha pagina JSF:
[code]<%@ 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”%>
<f:view>