my dog learned polymorphism*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying files to webapps/ROOT" Watch "Deploying files to webapps/ROOT" New topic
Author

Deploying files to webapps/ROOT

Victor Ho
Ranch Hand

Joined: Sep 05, 2003
Posts: 74
Hi,

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:
http://host:port/xyz/index.html

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

Thanks
Victor
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12671
    
    5
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.
Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying files to webapps/ROOT
 
Similar Threads
GWT and IE 6
Servlet Mapping vs Static resource
Tomcat HTML placement
setting index.html to my context root
Tomcat HTML placement