Only log missing class as an error on Sun JVMs. Likely to be an non-issue for other...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 3 Dec 2009 13:24:15 +0000 (13:24 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 3 Dec 2009 13:24:15 +0000 (13:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@886774 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java

index 5cb7ca8..79c44a9 100644 (file)
@@ -184,7 +184,13 @@ public class JreMemoryLeakPreventionListener implements LifecycleListener {
                             new Class[] {long.class});
                     method.invoke(null, Long.valueOf(3600000));
                 } catch (ClassNotFoundException e) {
-                    log.error(sm.getString("jreLeakListener.gcDaemonFail"), e);
+                    if (System.getProperty("java.vendor").startsWith("Sun")) {
+                        log.error(sm.getString(
+                                "jreLeakListener.gcDaemonFail"), e);
+                    } else {
+                        log.debug(sm.getString(
+                                "jreLeakListener.gcDaemonFail"), e);
+                    }
                 } catch (SecurityException e) {
                     log.error(sm.getString("jreLeakListener.gcDaemonFail"), e);
                 } catch (NoSuchMethodException e) {