File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Head First Android this week in the Android 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: 90
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: 16895
    
  26

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: unable to run my first example
 
It's not a secret anymore!