*
The moose likes Servlets and the fly likes Http 404 error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Http 404 error" Watch "Http 404 error" New topic
Author

Http 404 error

Raja Ratnam Karuppusamy
Greenhorn

Joined: Nov 23, 2007
Posts: 4
Hi,
I Created a web appln which includes a simple html pg and a servlet using tomcat as WS.I am able to access the Html pg only if i deploy it in the webapps->proj name folder.but when i deploy the servlet pg and the Deploydesc in the WEB-INF in put it in the webapps->proj name folder i am not able to access the html file nor anything...i tried restarting the server.but as soon as i remove the web-inf folder i am able to access the html....pls help me in this problem
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Originally posted by Raja Ratnam Karuppusamy:
Hi,
I Created a web appln which includes a simple html pg and a servlet using tomcat as WS

Please use real words when posting to the forums. Abbreviations such as "appln" in place of "application" and "pg" in place of "page", and all the other abbreviations you used only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
as soon as i remove the web-inf folder

That suggests to me that you have an error in the web.xml. Have you checked the logs for startup errors?

Note that the correct name for the directory is WEB-INF - Java cares about case even if windows doesn't.

Bill
Raja Ratnam Karuppusamy
Greenhorn

Joined: Nov 23, 2007
Posts: 4
thanks for the reply.The problem was in the web.xml document.
 
 
subject: Http 404 error
 
Similar Threads
Deploying My WebApp in Tomcat
Servlet delivery in Tomcat
Unable to run servlet
http status 404 The requested resource is not available.
Help Me