• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting up new project

 
varungoyal goyal
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i created a new project varunwork in webapps folder wid proper hierarchy like it have web-inf folder in it wich contains classes folder and a web.xml.i kept a main.html file for testing in varunwork folder . now wen i access wid url http://localhost:8080/varunwork it doesnt show any files in it and says...

The requested resource (/varunwork/) is not available.
but wen i do this...http://localhost:8080/varunwork/main.html
my html contents are displayed well on browser.
help plz...
if there is a path set up problem plz tell the appropriate way to set path..thnx
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
main.html is not one of the standard "welcome" files. In the default web.xml (under the conf directory) we find:

So a file named index.html will be served if Tomcat gets a request that does not name a html file.
Bill
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
varungoyal goyal,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular, please see this entry..

Often people drive away folks that could help them by not taking the time to present their question as well as they could. Following these tips will give you the best possible shot at getting a quick and accurate anwer for your question.

Again, welcome to JavaRanch and good luck with your question.
-Ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic