tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r607800 - /tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
Date Tue, 01 Jan 2008 04:49:25 GMT
Author: fhanik
Date: Mon Dec 31 20:49:24 2007
New Revision: 607800

URL: http://svn.apache.org/viewvc?rev=607800&view=rev
Log:
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

Modified:
    tomcat/trunk/java/org/apache/catalina/core/StandardContext.java

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java?rev=607800&r1=607799&r2=607800&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Mon Dec 31 20:49:24 2007
@@ -4601,6 +4601,9 @@
             log.error( "Error reseting context " + this + " " + ex, ex );
         }
         
+        //reset the instance manager
+        instanceManager = null;
+
         // Notify our interested LifecycleListeners
         lifecycle.fireLifecycleEvent(AFTER_STOP_EVENT, null);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message