Essentially revert r943726
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 13 May 2010 20:04:05 +0000 (20:04 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 13 May 2010 20:04:05 +0000 (20:04 +0000)
Children may be added prior to calling Context.start() and they *do* need to be started in that case.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@943995 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/StandardContext.java

index 7079b5f..8e72e70 100644 (file)
@@ -4630,6 +4630,13 @@ public class StandardContext extends ContainerBase
                 // Notify our interested LifecycleListeners
                 fireLifecycleEvent(Lifecycle.CONFIGURE_START_EVENT, null);
                 
+                // Start our child containers, if not already started
+                for (Container child : findChildren()) {
+                    if (!child.getState().isAvailable()) {
+                        child.start();
+                    }
+                }
+
                 // Start the Valves in our pipeline (including the basic),
                 // if any
                 if (pipeline instanceof Lifecycle) {