Followup to r950587 which was a fix for https://issues.apache.org/bugzilla/show_bug...
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 2 Jun 2010 22:54:49 +0000 (22:54 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 2 Jun 2010 22:54:49 +0000 (22:54 +0000)
Fix lookup of the root context: its name is "", not "/".

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

java/org/apache/catalina/connector/CoyoteAdapter.java

index ad5fe88..f0b015b 100644 (file)
@@ -1115,7 +1115,7 @@ public class CoyoteAdapter implements Adapter {
         }
             
         // Then look in ROOT context of default host
-        Context defaultContext = (Context) defaultHost.findChild("/");
+        Context defaultContext = (Context) defaultHost.findChild("");
         accessLog = findAccessLog(defaultContext);
         if (accessLog != null) {
             return accessLog;