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

hello world application not running

gargi joshi

Joined: May 29, 2013
Posts: 3
anyone please help.....its urgent................
my files are as follows

package hello;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
public class Hello {
final String world="Helllo World !";
public String getworld() {
return world;

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="" xmlns="" xmlns:web="" xsi:schemaLocation="" version="3.0">
<servlet-name>Faces Servlet</servlet-name>
<servlet-name>Faces Servlet</servlet-name>


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

<html xmlns=""
xmlns:f="" xml:lang="en" lang="en">
<title>My Facelets Page</title>




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


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Welcome to the JavaRanch, Joshi!

We have a series of FAQs that can help you use the Ranch more effectively ( One of them concerns the futility of asking "urgent" questions. We're not paid to be here 24x7 (or at all, for that matter) so it can take quite a while for someone to show up and answer. This one is also worth noting:

One thing that probably we don't have in a FAQ is that our "Code" button in the message editor is very useful for taking preformatted code (and XML) and displaying it in a more readable way.

You didn't provide any details, but I think probably your error is that you don't have the JSF "f:view" elements defined for your View Template.

An IDE is no substitute for an Intelligent Developer.
Aakash Saxena

Joined: Nov 11, 2012
Posts: 13
Just in case, your code still ain't running , try following in your front end file :

I agree. Here's the link:
subject: hello world application not running
It's not a secret anymore!