You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/04/26 22:57:33 UTC
svn commit: r1476401 -
/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
Author: markt
Date: Fri Apr 26 20:57:33 2013
New Revision: 1476401
URL: http://svn.apache.org/r1476401
Log:
Fix double start of Resources noticed while investigating CI unit test failures
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=1476401&r1=1476400&r2=1476401&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Fri Apr 26 20:57:33 2013
@@ -4870,7 +4870,11 @@ public class StandardContext extends Con
resources.setCacheMaxSize(getCacheMaxSize());
resources.setCacheMaxObjectSize(getCacheObjectMaxSize());
- resources.start();
+ // May have been started (but not fully configured) in init() so no need
+ // to start the resources if they are already available
+ if (!resources.getState().isAvailable()) {
+ resources.start();
+ }
if (effectiveMajorVersion >=3 && addWebinfClassesResources) {
WebResource webinfClassesResource = resources.getResource(
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org