aspose file tools
The moose likes Servlets and the fly likes HTTP status 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "HTTP status 404" Watch "HTTP status 404" New topic
Author

HTTP status 404

roomy iqbal
Greenhorn

Joined: Oct 23, 2008
Posts: 7
Hi
I have got another problem. My site url is
http://localhost:8080/hello/index.jsp
but when i enter this it says 404 not found although it is there. But when i remove web.xml and class folder then it displays the page but with errors (because the class files are not there).
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
Originally posted by roomy iqbal:
Hi
I have got another problem. My site url is
http://localhost:8080/hello/index.jsp
but when i enter this it says 404 not found although it is there. But when i remove web.xml and class folder then it displays the page but with errors (because the class files are not there).


Where is the index.jsp placed in your web-application and what is the servlet-mapping that you have defined for it in web.xml?


Thanks and Regards
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56232
    
  13

Originally posted by roomy iqbal:
But when i remove web.xml and class folder then it displays the page ...

This probably means that there is an error in your web.xml.

Have you looked at the logs or console output to see if there are any errors reported?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Praveen Kumar
Ranch Hand

Joined: Nov 06, 2006
Posts: 133
put your index.jsp file under your web application directly.

say :
hello
--- index.jsp

This should work for you.
Tariq Woo
Greenhorn

Joined: Apr 24, 2008
Posts: 2
index.jsp not under hello
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: HTTP status 404
 
Similar Threads
File not found error
Request Dispatcher problem
how to deploy web in tomcat
problem with war file created on linux
Servlet Context Virtual Sandbox