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 getting 404 error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "getting 404 error" Watch "getting 404 error" New topic
Author

getting 404 error

satish bodas
Ranch Hand

Joined: Jun 19, 2008
Posts: 116
Hello ,
I am getting a Http 404 error and understand that it means that resource being accessed is not available

This is an app deployed in Tomcat
Simple JSF app

Scenario 1 ::
Here is the portion of the web.xml ::


My application is deployed under "webapps" in tomcat as :: " jsfExamples "

The URL that I try is ::
http://localhost:8080/jsfExamples/faces/pages/authentication/login.jsp
( This works fine )

This gives 404 ::
http://localhost:8080/jsfExamples/faces/pages/authentication/login.jsf

Here pages / authentication are folders under context .

Scenario 2 ::
If I change the web.xml servlet mapping to ::


Then I try this URL ::
http://localhost:8080/jsfExamples/pages/authentication/login.jsp

The page never loads and just keeps hanging

Nothing in logs too


Scenario 3 ::

web.xml ::


Tried this URL ::
http://localhost:8080/jsfExamples/pages/authentication/login.jsp

Got the following error ::


Thanks ,
~satish
[ September 08, 2008: Message edited by: satish bodas ]
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598



My Blog SCJP 5 SCWCD 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting 404 error