This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 41182
    
  45
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 - my free Android networking tools app
 
Don't get me started about those stupid light bulbs.
 
subject: Deploying in Tomcat other than in webapps folder
 
Similar Threads
how to handle file uploads in spring
How to access my application without storing in webapps
Problem starting servlet
404 error
Unable to load servlet in Tomcat 5.5