File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes setting up new project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "setting up new project" Watch "setting up new project" New topic

setting up new project

varungoyal goyal
Ranch Hand

Joined: May 31, 2006
Posts: 37
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

Joined: Mar 22, 2000
Posts: 13037
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.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

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.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: setting up new project
It's not a secret anymore!