• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">



<!-- 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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"

<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="http://java.sun.com/xml/ns/javaee"




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

please find below my LoginBean class

package com.mq.updatemanager.web.login;

* @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
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic