Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50087
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 14 Oct 2010 16:05:55 +0000 (16:05 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 14 Oct 2010 16:05:55 +0000 (16:05 +0000)
Catch ClassFormatErrors when scanning for annotations.

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

java/org/apache/catalina/startup/ContextConfig.java
webapps/docs/changelog.xml

index a04b97a..d08ee42 100644 (file)
@@ -1958,6 +1958,10 @@ public class ContextConfig
             log.warn(sm.getString("contextConfig.invalidSciHandlesTypes",
                     className), e);
             return;
+        } catch (ClassFormatError e) {
+            log.warn(sm.getString("contextConfig.invalidSciHandlesTypes",
+                    className), e);
+            return;
         }
 
         if (clazz.isAnnotation()) {
index 5f90634..25f4d53 100644 (file)
         causes applications marked as meta-data complete to return 404s for all
         requests. Patch provided by heyoulin. (markt)
       </fix>
+      <fix>
+        <bug>50087</bug>: Catch ClassFormatErrors when scanning for annotations.
+        (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">