Bonjour,

J'ai installé les librairies pour utiliser Facelets sur mon projet web. Seulement voilà, je rencontre un petit souci, c'est que je ne peux pas accéder à ma page (la ressource n'est pas disponible). Et je n'ai pas d'exception lorsque je run mon appli sur Tomcat.

Voici ce que j'utilise :
Tomcat 6
JEE 6
Spring Framework 2.5.6
Spring Security 2.0.5
Facelets 1.1.14
JSF 1.2.13

J'ai mes librairies nécessaires à JSF, à savoir :
jsf-impl.jar
jsf-api.jar

et pour Facelets :
jsf-facelets.jar

Voici la conf du 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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?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_2_5.xsd" id="WebApp_ID" version="2.5">
 
 	<!-- la servlet -->
	<servlet>
		<servlet-name>QueryTool</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
	</servlet>
 
	<context-param>
	  <param-name>contextConfigLocation</param-name>
	  <param-value>/WEB-INF/applicationContext.xml /WEB-INF/applicationContextSecurity.xml
	  </param-value>
	</context-param>
 
	<!-- le mapping des url *.html traité par Spring-->
	<servlet-mapping>
		<servlet-name>QueryTool</servlet-name>
		<url-pattern>*.html</url-pattern>
	</servlet-mapping>
 
	<!--  Fichier de démarrage  -->
	<welcome-file-list>
	  <welcome-file>index.jsp</welcome-file>
	</welcome-file-list>
 
	<!-- le chargeur du contexte spring de l'application -->
	<listener>
		<listener-class>
			org.springframework.web.context.ContextLoaderListener
		</listener-class>
	</listener>
 
	<!--  Spring Security Acegi -->
	<filter>
		 <filter-name>springSecurityFilterChain</filter-name>
 		 <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
	</filter>
 
	<filter-mapping>
		 <filter-name>springSecurityFilterChain</filter-name>
		 <url-pattern>/*</url-pattern>
	</filter-mapping> 
 
	<!-- Configuration de JSF / Facelets -->
	<context-param>
		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
		<param-value>client</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.application.CONFIG_FILES</param-name>
		<param-value>/WEB-INF/faces-config.xml</param-value>
	</context-param>
	<context-param>
		<param-name>com.sun.faces.validateXml</param-name>
		<param-value>false</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>
		<!--  mapping url géré par JSF / Facelets  -->
		<servlet-name>FacesServlet</servlet-name>
		<url-pattern>/faces/*</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>FacesServlet</servlet-name>
		<url-pattern>*.faces</url-pattern>
	</servlet-mapping>
 
	<listener>
		<listener-class>
			com.sun.faces.config.ConfigureListener
		</listener-class>
	</listener>
	<listener>
		<listener-class>
			com.sun.faces.application.WebappLifecycleListener
		</listener-class>
	</listener>
 
	<!-- Fin configuration JSF / Facelets -->
 
</web-app>
la conf du 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
<?xml version="1.0"?>
<!--
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
-->
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
 
<faces-config>
	<application>
		<locale-config>
			<default-locale>fr</default-locale>
		</locale-config>
	</application>
</faces-config>
et la page hello.jsp :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<head>
  <title>Ma premiere page XHTML avec facelets</title>
</head>
<body>
  <f:view>
    <h:outputText value="Hello World" />
  </f:view>
</body>
</html>
Je run l'application et essaye d'accèder a ma page hello.jsp, mais la page m'indique que la ressource demandée n'est pas disponible.

Donc, ma question est : Est ce que j'ai loupé qqchose dans ma config ?

Merci de votre aide