*
The moose likes JSF and the fly likes unable to run my first example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "unable to run my first example" Watch "unable to run my first example" New topic
Author

unable to run my first example

vasu chowdary
Ranch Hand

Joined: Mar 15, 2008
Posts: 89
This is not first time for me,I have tried so many times,even i download the code form roseindia.net but i am unable to run my first exaqmple.It is showing 404 exception while i am running this webapp in tomcat.following is my code..







for this i have added jsf-api.jar,jsf-impl.jar,jstl.jar,standard.jar in my lib folder


please help me

Pawan Kr Gupta
Greenhorn

Joined: Nov 21, 2010
Posts: 26
Dear Vashu,

404 error comes when the concerned JSP page is not there.so please test whether the page hello.jsf is prsent or not.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

Pawan Kr Gupta wrote:Dear Vashu,

404 error comes when the concerned JSP page is not there.so please test whether the page hello.jsf is prsent or not.


"hello.jsf" is a URL, not a "page" (meaning a file containing a JSF page template). People confuse resource paths with URL paths just because they look a lot alike. But there are some very important differences. One of which is that the URL "faces.jsf" will often be resolved by locating and processing a resource named "faces.jsp", depending on how the web.xml was set up.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to run my first example
 
Similar Threads
first JSF page...
JSF Tag Problem
EL expressions are not evaluated
Hello World Programme is not Running
Getting ViewExpiredException