Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: deploying and undeploying web apps at run time (Tomcat 4.1 version)

David Harvey

2004-02-18


It can be done. All of the manager commands seem to work well,
except for remove in my case, which doesn't remove the deployed
directroy because Tomcat maintains a reference to struts.jar in
in my deployed image. I wrote an uninstall and had to manually
stop Tomcat and remove the deployed directory.

If, like me, you've already qualified your app on Tomcat 4.1
(4.1.29, in my case) you want to check out the docs for running
the manager in the 4.1.29 version:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html

I wrote my own java client that runs the Tomcat manager application
in my installer. It was pretty easy.

David Harvey, eXegesys, Inc. www.exegesys.com

-----Original Message-----
From: news [mailto:news@(protected)
Sent: Monday, February 16, 2004 3:52 PM
To: tomcat-user@(protected)
Subject: Re: deploying and undeploying web apps at run time


Pretty sure it can be done

I remember reading up on this in relation to ANT

I think there is some integration with ANT examples in the Tomcat
documentation - try

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html

And

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant

Hope this helps



"Abhijat Thakur" <athakur@(protected)
news:8789AB7F3B5ADE44997BBAB05F33BEEFA7122E@(protected)...

hi,

I want to deploy and undeploy web applications at run time. Aim is that once
the tomcat is up we should be able to deploy and undeploy web apps
programatically. Is there a way this can be achieved or if i can look up
some docs/respurce somewhere.

thanks

abhijat




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.