From a7932e8900765880ec0ebdf6f5b73d52109aaa4e Mon Sep 17 00:00:00 2001 From: fhanik Date: Tue, 1 Jan 2008 04:49:24 +0000 Subject: [PATCH] If we are reloading the context, we must get rid of the old instance manager, it uses final fields, so we can't issue it a new class loader to the old instance git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@607800 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/catalina/core/StandardContext.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/org/apache/catalina/core/StandardContext.java b/java/org/apache/catalina/core/StandardContext.java index b9f7e6774..109b29fed 100644 --- a/java/org/apache/catalina/core/StandardContext.java +++ b/java/org/apache/catalina/core/StandardContext.java @@ -4601,6 +4601,9 @@ public class StandardContext log.error( "Error reseting context " + this + " " + ex, ex ); } + //reset the instance manager + instanceManager = null; + // Notify our interested LifecycleListeners lifecycle.fireLifecycleEvent(AFTER_STOP_EVENT, null); -- 2.11.0