Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying in Tomcat other than in webapps folder

 
Senthil Kumar
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic