Bonjour ,

En me basant sur ce tutoriel : http://dghaies-jihed.developpez.com/...g/?page=page_2

Je teste la page autentification mais cela ne marche pas, j'obtiens l'erreur :
Etat HTTP 500 - An exception occurred processing JSP page /authen.jsp at line 13

--------------------------------------------------------------------------------

type Rapport d''exception

message An exception occurred processing JSP page /authen.jsp at line 13

description Le serveur a rencontré une erreur interne qui l''a empêché de satisfaire la requête.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /authen.jsp at line 13

10: "http://www.w3.org/TR/html4/loose.dtd">
11:
12: <html>
13: <f:view>
14: <head>
15: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
16: <title>Authentification</title>


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


cause mère

java.lang.RuntimeException: Cannot find FacesContext
javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855)
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672)
org.apache.jsp.authen_jsp._jspx_meth_f_005fview_005f0(authen_jsp.java:128)
org.apache.jsp.authen_jsp._jspService(authen_jsp.java:101)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
Code la page authen.jsp
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
 
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
 
<html>
    <f:view>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Authentification</title>
        </head>
        <body >
            <rich:spacer height="200px"></rich:spacer>
            <center >
                <rich:panel style="background-image:url(#{facesContext.externalContext.requestContextPath}/images/ajax/userauth.png);
                            background-repeat:no-repeat;background-position:-35px -15px;
                            ;width:400px;" header="Authentification" styleClass="panel_3">
                    <h:panelGrid columns="3">
                        <h:outputText value="Login:" />
                        <h:inputText id="log"  value="" required="true"  requiredMessage="champs obligatoire" />
                        <rich:message for="log" style="color: red"/>
                        <h:outputText value="Mot de passe :" />
                        <h:inputSecret  id="mdp" value="" required="true"   requiredMessage="champs obligatoire" />
                        <rich:message for="mdp" style="color: red"/>
                    </h:panelGrid>
                    <rich:spacer height="30px"></rich:spacer>
                    <a4j:commandButton value ="Connexion" />
                </rich:panel>
            </center>
        </body>
    </f:view>
</html>
Quelqu'un saurait-il m'indiquer d'où peut venir l'erreur ?

Merci d'avance pour votre aide.