Re: Undeploying webapp programatically

2010-07-07 Thread Afkham Azeez
I was able to resolve this. It may be helpful for somebody looking for this information. After calling host.removeChild(context), you need to call, ((StandardContext)context).destroy(); Only when destroy is called the context gets completely removed. Thanks Azeez On Wed, Jul 7, 2010 at 7:12 PM,

Re: Undeploying webapp programatically

2010-07-07 Thread Mark Thomas
On 07/07/2010 14:26, Afkham Azeez wrote: > Hi, > I'm using embedded Tomcat 5.5.23. I undeploy the webapps > programmatically using the following code segment: > > host.removeChild(context); > > Now, when I send a request to the context which was undeployed, I get > an HTTP 503. But I expect to g

Re: Undeploying webapp programatically

2010-07-07 Thread Afkham Azeez
Hi, I'm using embedded Tomcat 5.5.23. I undeploy the webapps programmatically using the following code segment: host.removeChild(context); Now, when I send a request to the context which was undeployed, I get an HTTP 503. But I expect to get an HTTP 404 since that resource is not actually availa