• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP status 404

 
roomy iqbal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Praveen Kumar
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
put your index.jsp file under your web application directly.

say :
hello
--- index.jsp

This should work for you.
 
Tariq Woo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
index.jsp not under hello
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!