Bonjour,

Je fais quelques tests sur la technologie JSF et j'essaie de déployer une application (un exemple téléchargé) sous Weblogic 10.3.

J'obtiens cette erreur lorsque j'essaie d'acceder à mon application

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
weblogic.servlet.jsp.CompilationException: Failed to compile JSP /login.jsp
login.jsp:14:32: No property editor found for the bean "javax.el.ValueExpression".
        <td><h:inputText value="#{login.nom}"/></td> 
                               ^------------^
login.jsp:18:34: No property editor found for the bean "javax.el.ValueExpression".
        <td><h:inputSecret value="#{login.mdp}"/></td> 
                                 ^------------^
login.jsp:21:46: No property editor found for the bean "javax.el.ValueExpression".
      <td colspan="2"><h:commandButton value="Login" action="login"/></td> 
                                             ^-----^
login.jsp:21:61: No property editor found for the bean "javax.el.MethodExpression".
      <td colspan="2"><h:commandButton value="Login" action="login"/></td> 
                                                            ^-----^
Voici mes fichiers de configuration:

web.xml


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
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
  <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>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
</web-app>
faces-config.xml:

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
<?xml version="1.0"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    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"
    version="1.2">
  <navigation-rule> 
    <from-view-id>/login.jsp</from-view-id> 
    <navigation-case> 
      <from-outcome>login</from-outcome> 
      <to-view-id>/accueil.jsp</to-view-id> 
    </navigation-case> 
  </navigation-rule> 
  <managed-bean> 
    <managed-bean-name>login</managed-bean-name> 
    <managed-bean-class>com.jmd.test.jsf.LoginBean</managed-bean-class> 
    <managed-bean-scope>session</managed-bean-scope> 
  </managed-bean> 
</faces-config>
index.html:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
<html>
<head>
<meta http-equiv="Refresh" content="0; URL=login.faces" />
<title>Demarrage de l'application</title>
</head>
<body>
<p>Demarrage de l'application ...</p>
</body>
</html>
mon LoginBean.java

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
package com.jmd.test.jsf;
 
public class LoginBean {
 
    private String nom;
 
    private String mdp;
 
    public String getMdp() {
        return mdp;
    }
 
    public String getNom() {
        return nom;
    }
 
    public void setMdp(String string) {
        mdp = string;
    }
 
    public void setNom(String string) {
        nom = string;
    }
}
et le login.jsp (la ou pour moi ca coince)

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
<html> 
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> 
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> 
<f:view> 
<head> 
  <title>Application de tests avec JSF</title> 
</head> 
<body> 
  <h:form> 
    <h3>Identification</h3> 
    <table> 
      <tr> 
        <td>Nom : </td> 
        <td><h:inputText value="#{login.nom}"/></td> 
      </tr> 
      <tr> 
        <td>Mot de passe :</td> 
        <td><h:inputSecret value="#{login.mdp}"/></td> 
      </tr> 
      <tr> 
      <td colspan="2"><h:commandButton value="Login" action="login"/></td> 
      </tr> 
    </table> 
  </h:form> 
</body> 
</f:view> 
</html>
Quel pourrait bien être mon probleme?
Un probleme de libraire? si oui quels sont les librairies nécessaires pour déployer jsf sur un serveur weblogic 10.3

J'aimerai découvrir un peu plus sur les JSF mais pour cela il faudra que j'arrive à faire marcher ce petit exemple!

Merci d'avance!