Author: markt
Date: Thu Dec  3 13:24:15 2009
New Revision: 886774

URL: http://svn.apache.org/viewvc?rev=886774&view=rev
Log:
Only log missing class as an error on Sun JVMs. Likely to be an non-issue for 
other vendors.

Modified:
    
tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java

Modified: 
tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java?rev=886774&r1=886773&r2=886774&view=diff
==============================================================================
--- 
tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java 
(original)
+++ 
tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java 
Thu Dec  3 13:24:15 2009
@@ -184,7 +184,13 @@
                             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) {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to