The moose likes Tomcat and the fly likes Deploying files to webapps/ROOT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying files to webapps/ROOT" Watch "Deploying files to webapps/ROOT" New topic

Deploying files to webapps/ROOT

Victor Ho
Ranch Hand

Joined: Sep 05, 2003
Posts: 74

I have had success deploying applications as .war files into webapps/. E.g. applicaiton 'xyz' -> webapps/xyz.

However, this requires the users to type the sub-dir names in the url:

If I would like to deploy files to the webapps/ROOT directly, any pointers on how to do so?

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
With a WAR you are creating a new webapplication. /ROOT is already a web application for "/" so you can dump html and jsp files in directly. If you want a servlet to run under /ROOT, you will have to modify the web.xml in /ROOT/WEB-INF.
I agree. Here's the link:
subject: Deploying files to webapps/ROOT
It's not a secret anymore!