File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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: 12759
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying files to webapps/ROOT
 
Similar Threads
setting index.html to my context root
Tomcat HTML placement
Servlet Mapping vs Static resource
GWT and IE 6
Tomcat HTML placement