On Thu, 26 Apr 2001, Mark.Abbott wrote:
>
> The ContextConfig.start and ContextConfig.stop methods in
> Tomcat 4b2 do not appear to be inverses of each other.
> The start method causes children to be added to the context
> during web.xml parsing, but the stop method does not remove
> them. Doesn't this mean that stopping and then restarting
> a running application will always generate exceptions as
> ContextConfig.start tries to add already existing servlets
> to the context?
>
> Mark
>
>
>
You're right ... they should be inverses. I'll add that to my TODO list.
Fortunately, this doesn't affect auto-reload -- the Context itself is not
actually stop()'d and re-start()'d in that case, so the ContextConfig
methods are not re-executed.
It also doesn't affect manual redeployment of apps through the Manager
servlet, because that causes a completely new Context to be created.
Craig