Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51586
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 31 Jul 2011 17:08:43 +0000 (17:08 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 31 Jul 2011 17:08:43 +0000 (17:08 +0000)
Expand error handling to cover anything that is recoverable (or might be recoverable) when loading classes during HandlesTypes processing.

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

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

index d959952..334f3cb 100644 (file)
@@ -2016,6 +2016,11 @@ public class ContextConfig
             log.warn(sm.getString("contextConfig.invalidSciHandlesTypes",
                     className), e);
             return;
+        } catch (Throwable t) {
+            ExceptionUtils.handleThrowable(t);
+            log.warn(sm.getString("contextConfig.invalidSciHandlesTypes",
+                    className), t);
+            return;
         }
 
         if (clazz.isAnnotation()) {
index 87b800d..72c2222 100644 (file)
         to/from URLs when working with resources from a Context so special
         characters don't cause issues. (markt)
       </fix>
+      <fix>
+        <bug>51586</bug>: Expand error handling to cover anything that is
+        recoverable (or might be recoverable) when loading classes during
+        HandlesTypes processing. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">