Bonjour tout le monde,
j'ai un petit souci avec mon projet concernant le welcome-file que je lui assigne dans le web.xml. La page specifie est Login.xhtml, si je la lance directement (click droit -> run as -> run on server), elle s'affiche bien. mais si j'execute tout le projet elle n'affiche pas son contenu juste une image.

je travaille avec spring ioc, jsf avec primefaces et hibernate.
mon web.xml est comme suit:
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
 
<?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" id="WebApp_ID" version="3.0">
  <display-name>dac_web3</display-name>
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath:application-context.xml</param-value>
  </context-param>
  <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
  </context-param>
  <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>
  <filter>
    <filter-name>PrimeFaces FileUpload Filter</filter-name>
    <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
    <init-param>
      <param-name>thresholdSize</param-name>
      <param-value>2097152</param-value>
    </init-param>
    <init-param>
      <param-name>uploadDirectory</param-name>
      <param-value>C:\tmp</param-value>
    </init-param>
    <init-param>
      <param-name>UploadDirectory</param-name>
      <param-value>/uploaded</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>PrimeFaces FileUpload Filter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
  </filter-mapping>
  <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
  </listener>
  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
  <listener>
    <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
  </listener>
  <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>
  <session-config>
    <session-timeout>30</session-timeout>
  </session-config>
  <welcome-file-list>
      <welcome-file>Login.xhtml</welcome-file>
    <welcome-file>index.xhtml</welcome-file>
  </welcome-file-list>
</web-app>
La page Login.xhtml

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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
 
<?xml version='1.0' encoding='UTF-8' ?>
<!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:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>Authentification utilisateurs</title>
 
	<style type="text/css">
html,body {
	height: 100%;
}
 
div#distance {
	margin-bottom: -10em;
	width: 1px;
	height: 50%;
	float: left;
}
 
 
 
body {
	background: url(images/bg-login.jpg) repeat-x center;
	margin: 0;
	padding: 0;
	font-family: Helvetica, Arial, Tahoma, serif;
	font-size: 9pt;
}
 
h1 {
	font-size: 250%;
	text-transform: uppercase;
	letter-spacing: -1px;
	font-weight: bold;
	width: 450px;
	margin: 0 0 35px 0;
	padding: 0;
}
 
h1 a {
	color: #fff;
	text-decoration: none;
}
 
h1 a:hover {
	color: #ccc;
}
 
fieldset,form {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
}
 
fieldset legend {
	display: none;
}
 
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
 
ol li {
	float: left;
	margin-right: 15px;
}
 
label {
	display: block;
}
 
label.field-title {
	width: 75px;
	color: #fff;
	font-weight: bold;
	float: left;
	padding-top: 3px;
}
 
label.txt-field input {
	border: none;
	outline: none;
	background: none;
	padding: 2px 0 0 8px;
}
 
label.remember {
	color: #ccc;
	float: left;
	width: 200px;
	margin-top: 20px;
	margin-left: 75px;
	margin-right: 215px;
}
 
div.align-right {
	float: left;
	width: 56px;
	margin-top: 20px;
}
</style>
 
</h:head>
<h:body style="background-repeat:no-repeat;background-image:url(img/bg.bmp);" >
<f:view>
<h:form>
<p:growl id="growl" showDetail="true" sticky="true" life="950" />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<table background="img/lo.png" style="margin-right:10%; float:right">
 
<tr><td colspan="3"><img src="img/auth.png"  /></td></tr>
<tr ><td style="color:#FFFFFF ;font-weight:bold;">
Nom utilisateur</td><td colspan="2"><p:inputText
									id="username" value="#{UtilisateurBean.login}" title="Login"
									style="border-radius: 10px"
									requiredMessage="le champ login est Obligatoire."
									required="true" /> <h:message for="username" /></td></tr>
<tr ><td style="color:#FFFFFF ;font-weight:bold;">
Mot de passe</td><td colspan="2"><p:password
									id="pass" value="#{UtilisateurBean.password}" required="true"
									style="border-radius: 10px"
									requiredMessage="Entrer un passzord valide" /> <h:message
									for="pass" /></td></tr>
<tr ><td style="color:#FFFFFF ;font-weight:bold;">
se connecter en tant que</td><td colspan="2"><p:selectOneRadio
										id="options" value="#{UtilisateurBean.typeRole}">
										<f:selectItem itemLabel="Administrateur"
											itemValue="Administrateur" />
										<f:selectItem itemLabel="Administrateur Audit"
											itemValue="Administrateur Audit" />
										<f:selectItem itemLabel="Planificateur"
											itemValue="Planificateur" />
										<f:selectItem itemLabel="Auditeur" itemValue="Auditeur" />
							</p:selectOneRadio></td></tr>
<tr ><td style="color:#FFFFFF ;font-weight:bold;"></td><td></td><td align="right">
<p:commandButton id="logins"
										style="background-image:url('images/bt-login.gif');background-repeat: no-repeat;height: 21px;width: 56px;border-style: none;border-radius: 10px"
										value=" " action="#{UtilisateurBean.connection_role}"
										update="growl" /></td></tr>
</table>
<h:messages tooltip="true" layout="table" />
				</h:form>
			</f:view>
</h:body>
</html>
ps: la page index.xhtml redirecte vers Login.xhtml

comment est ce que je peux faire pour que ma page s'affiche en entier? Merci