File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes unable to load faces-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "unable to load faces-config.xml " Watch "unable to load faces-config.xml " New topic

unable to load faces-config.xml

prasad neena

Joined: Jan 03, 2013
Posts: 11

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"><hutputLabel value="UserName"></hutputLabel> </td>
<td align="right"><p:inputText value="#{loginBean.userName}" styleId="userName"
title="Enter Username"></p:inputText></td>

<tr class="password" >
<td align="right"><hutputLabel value="Password"></hutputLabel></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.

Volodymyr Lysenko
Ranch Hand

Joined: Mar 29, 2012
Posts: 511


Maybe removing comma from path to faces-config wil help

True person is moral, false is right!
I agree. Here's the link:
subject: unable to load faces-config.xml
It's not a secret anymore!