Ragazzi io ho seguito la guida di questo sito a JSF passo passo ma quando vado a deployarlo su qualunque server mi dice :
org.apache.jasper.JasperException: java.lang.RuntimeException: Cannot find FacesContext

vi posto tutto:

web.xml

<?xml version="1.0"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>

<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>/faces/index.jsp</welcome-file>
</welcome-file-list>
</web-app>




faces-config.xml

<?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/we...config_1_2.xsd">

<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>benvenuto</from-outcome>
<to-view-id>/welcome.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>uscita</from-outcome>
<to-view-id>/exit.jsp</to-view-id>
</navigation-case>
</navigation-rule>

<managed-bean>
<managed-bean-name>utente</managed-bean-name>
<managed-bean-class>IT.html.jsf.bean.UtenteBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>


UtenteBean:



package IT.html.jsf.bean;



public class UtenteBean
{
private String nome;

public String getNome() { return nome; }

public void setNome(String nome) { this.nome = nome; }
}



index.jsp



<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>..:: JSF Esempio::..</title>
</head>
<body>
<f:view>
<h:form>
<hutputText value="Inserisci il tuo nome per accedere" />
<h:inputText value="#{utente.nome}" />
<h:commandButton value="Accedi" action="benvenuto" />
<h:commandButton value="Esci" action="uscita" />
</h:form>
</f:view>
</body>
</html>


welcome.jsp


<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>..:: JSF Esempio::..</title>
</head>
<body>
<f:view>
<hutputText value="Benvenuto" />
<hutputText value="#{utente.nome}" />
</f:view>
</body>
</html>





ho messo index.jsp nella cartella /faces come indicato nella guida e la richiamo da localhostorta/nomeApplicazione/faces/index.jsp


se tolgo i tag di JSF funziona.
Ho importato tutte le librerie di JSF e mojarra.
Cosa devo fare ???
aiutoooooo!!!
se potete aiutarmi ve ne sarei grado visto che mi serve di urgenza per il lavoro ty in anticipo