|  About  |  Archives  |  Log in  | 

Deploy on Tomcat Startup

Until now, I have been deploying and re-deploying the 'gersboweb' application manually. Today, I decided to figure out how I could make Tomcat deploy the application, when the Tomcat service was started. The answer was a small Context descriptor.

<!–Context fragment for deploying gersboweb–>
<Context path="/gersboweb" docBase="$PATH_TO_APP-DIR/WAR"
debug="0″ privileged="true">
</Context>

I named the file 'gersboweb.xml' and placed it in '$CATALINA_HOME/webapps'. When I restarted the Tomcat service, the application was deployed - neat!

If you enjoyed this post, make sure you subscribe to my RSS feed!

Related Posts:

Leave a Reply

Quicktags: