In the end it turns out I was using the wrong MBean. Well, wrong in that, as one user pointed out, shutting down a Host means shutting down every context in that Host. In my case I only have one host but even so, after calling the stop() method on the Host MBean, I was unable to re-start it by calling start().
Using JConsole and MC4J (and tips from other users) I finally found the correct MBean: Catalina:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//www.myapp.com/ I found this MBean using MC4J under MBean : Catalina : J2EEServer : J2EE Application : WebModule. I guess in the Tomcat MBean world a WebModule is a Context. At any rate, I am now able to call both start() and stop() on this MBean and my webapp starts and stops accordingly. Many thanks for everyone's patience and help! Bob -- View this message in context: http://www.nabble.com/Programmatically-stop-start-context-%28webapp%29-tf3975317.html#a11340965 Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]