Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help! HTTP Status 404 - The requested resource () is not available  RSS feed

 
garima jain
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am new to jsp and servlets programming. I wrote my first HTML code in the following index.html file:



and the directoy structure is webapps/projcart/index.html[b].

I made sure that the tomcat is running and then in url i typed
[b]http://localhost:8080/projcart/index.html


I have created one servet and web.xml with the following directory structure:
webapps/projcart/WEB-INF/classes/displayQuickOrderServlet
webapps/projcart/WEB-INF/web.xml

The thing is It is not showing me index html on localhost. If I remove web.xml then it is working fine. Does index.html have any relation with web.xml. Please help me in this. Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your web.xml has errors, it will prevent the context form being deployed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!