aspose file tools*
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 Spring in Action this week in the Spring 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: 42289
    
  64
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
 
wood burning stoves
 
subject: Deploying in Tomcat other than in webapps folder