wood burning stoves*
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 | 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
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: 39547
    
  27
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 ]

Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying in Tomcat other than in webapps folder
 
Similar Threads
404 error
How to access my application without storing in webapps
Problem starting servlet
how to handle file uploads in spring
Unable to load servlet in Tomcat 5.5