Doh! Return the newly created registrations rather than just creating work for the...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 21 Mar 2010 21:53:16 +0000 (21:53 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 21 Mar 2010 21:53:16 +0000 (21:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@925905 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/ApplicationContext.java

index 28973c3..5d10989 100644 (file)
@@ -1392,7 +1392,9 @@ public class ApplicationContext
         
         Container[] wrappers = context.findChildren();
         for (Container wrapper : wrappers) {
-            new ApplicationServletRegistration((Wrapper) wrapper, context);
+            result.put(((Wrapper) wrapper).getName(),
+                    new ApplicationServletRegistration(
+                            (Wrapper) wrapper, context));
         }
 
         return result;