Recent Posts

RSS Feeds

The Duh! Department: Deploying Webapps on Tomcat From Build Directory


I just learned last night that you can deploy your webapp from anywhere on your hardisk with Tomcat. All you have to do is put a 'Foo.xml' file into the webapp directory of tomcat. The XML file needs to have the config for your app like this...

<Context path="/roller" docBase=".../roller/build/roller" debug="0">
other config info
</Context>


I'm doing some playing around (adding Cactus to the build) with the roller source (which is lot of fun BTW) and was trying to get the target that copies the webapp over to tomcat working, I thought to myself 'self there must be another way'. After looking around for 15 minutes I found the roller.xml file and ta-da an epiphany. Now all I have to do is build and invoke the catalina reload target in my ant file and roller is redeployed. Cool!

I posted a snipit of the build.xml file if your interested.

Anyway I hope this helps some other person that is new to Tomcat...

Permalink     1 Comment



Comments:

[Trackback] allegiances colossal pup coinage stationed mortgage broker salary http://www.enter-mortgage.com/mortgage-broker-salary.html

Posted by mortgage rate chart on June 19, 2006 at 06:02 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed