jQuery in Action, 2nd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Deploying in Tomcat other than in webapps folder Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Deploying in Tomcat other than in webapps folder" Watch "Deploying in Tomcat other than in webapps folder" New topic
Author

Deploying in Tomcat other than in webapps folder

Senthil Kumar
Ranch Hand

Joined: Mar 13, 2006
Posts: 264
Hi,
Can any one tell me how can i have my application(be it a .war file or a simple directory structure) reside in other than the webapps folder and still able to run it.


when you really want something, all the universe always conspires in your favour.<br /> <br />SCJP1.5-77%<br />SCWCD-89%
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35222
    
    7
Create a file called TOMCAT_HOME\conf\Catalina\localhost\mywebapp.xml with contents like this:

Then your web app directory will be C:/path/to/my/web/app, and accessible under /mywebapp.
[ September 13, 2006: Message edited by: Ulf Dittmer ]

Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Deploying in Tomcat other than in webapps folder
 
Similar Threads
Problem starting servlet
How to access my application without storing in webapps
how to handle file uploads in spring
404 error
Unable to load servlet in Tomcat 5.5