Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50683
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 29 Jan 2011 00:15:34 +0000 (00:15 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 29 Jan 2011 00:15:34 +0000 (00:15 +0000)
Scan annotations when unpackWars=false

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

java/org/apache/naming/resources/WARDirContext.java
webapps/docs/changelog.xml

index 2015588..778c18c 100644 (file)
@@ -471,6 +471,8 @@ public class WARDirContext extends BaseDirContext {
         attrs.setName(entry.getName());
         if (!zipEntry.isDirectory())
             attrs.setResourceType("");
+        else
+            attrs.setCollection(true);
         attrs.setContentLength(zipEntry.getSize());
         attrs.setLastModified(zipEntry.getTime());
         
index 07719b1..0491b6a 100644 (file)
         WebappClassLoader since the thread that triggers the memory leak is
         created on demand. (markt)
       </fix>
+      <fix>
+        <bug>50683</bug>: Ensure annotations are scanned when upackWars is set
+        to <code>false</code> in the Host where a web application is deployed.
+        (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">