Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

unable to load faces-config.xml

Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have created a dynamic web project from eclipse-juno IDE for one of my JSF Application. Please find below my web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns=""



<!-- Change to "Production" when you are ready to deploy -->

<!-- <context-param>
</context-param> -->

<servlet-name>Faces Servlet</servlet-name>
<servlet-name>Faces Servlet</servlet-name>


please find below my index.xhtml file

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns=""

<link rel="stylesheet" href="WebContent/stylesheets/design.css" type="text/css"></link>
<link rel="styleSheet" href="WebContent/stylesheets/newWeb.css" type="text/css" />
<script type="text/javascript" src="WebContent/scripts/jquery-1.7.1.min.js"></script>

<script type="text/javascript">




<h:body onload="focus_Field()">
<div id="wrapper">
<div id="header">
<img alt="" src="WebContent/images/logo_indx.png"></img>
<div class="toplinks">
<a href="#">Help?</a>
<div id="wrapperscnd">
<div id="components">
<div id="leftcomponent">
<h:form action="#">

<table cellpadding="3" align="center" cellspacing="4" border="0">
<tr class="userid">
<td align="right" height="32px"><h:outputLabel value="UserName"></h:outputLabel> </td>
<td align="right"><p:inputText value="#{loginBean.userName}" styleId="userName"
title="Enter Username"></p:inputText></td>

<tr class="password" >
<td align="right"><h:outputLabel value="Password"></h:outputLabel></td>

<td align="right"><p:password value="#{loginBean.password}"
title="Enter Password"></p:password></td>
<tr class="submit">

<td align="left" ><p:commandButton value="Login" styleClass="button1" action="#{loginBean.login}" ></p:commandButton>

<div id="rightcomponents">
Strengthen the Authentication & Authorisation strategy for
controlling access to the Devices, Networks and Applications<br />
<br /> <span><a href="#">Self Help</a> </span>
<div class="footer">
<div class="leftfoot">
<img src="WebContent/images/logobotm.png" />

please find below my faces-config.xml file

<?xml version="1.0" encoding="UTF-8"?>
<faces-config xmlns=""




<!--****************Managed Bean Conf*******************-->

please find below my LoginBean class


* @author seetharam.vadapally
public class LoginBean {
private String userName;
private String password;
* @return the userName
public String getUserName() {
return userName;
* @param userName the userName to set
public void setUserName(String userName) {
this.userName = userName;
* @return the password
public String getPassword() {
return password;
* @param password the password to set
public void setPassword(String password) {
this.password = password;
public String login(){
return "login";


when I execute index.xhtml file i am not able to load bean properties from faces-config.xml file. Whereas the same set of files works well for tomcat project created in eclipse -juno IDE.
Kindly let me know if I am missing anything.
Any help would be greatly appreciated.

Ranch Hand
Posts: 514
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Maybe removing comma from path to faces-config wil help
What do you have in that there bucket? It wouldn't be a tiny ad by any chance ...
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic