This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Separate the WAR from server directory

 
Chee Seng
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the thing I want to do.

e.g.
Store the WAR file in �/apps/deploy/myApp.war�
Deploy the WAR from �/apps/deploy�
Future deployment (restart server or replace file autodeploy) will take the WAR file from �/apps/deploy�.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you create a context fragment file and put it under {tomcat install}/conf/Catalina/localhost/{contextPathName}.xml you can set the docBase attribute to any path you like.

For example, if my context path were to be "myApp" the file's name would be
"myApp.xml" and would look like:


See
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
for a complete list of Context attributes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic