Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

setting up new project

 
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
 
Author and all-around good cowpoke
Posts: 13078
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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • 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
 
What I don't understand is how they changed the earth's orbit to fit the metric calendar. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic