335001 Eliminate expected exceptions from log when running in JBoss

This commit is contained in:
Michael Gorovoy 2011-08-17 15:32:31 -04:00
parent 53f2a4f62b
commit 39fce10d74
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,7 @@
jetty-7.5.0-SNAPSHOT
+ 276670 SLF4J loggers show correct location information
+ 335001 Eliminate expected exceptions from log when running in JBoss
jetty-7.5.0.RC0 August 15th 2011
+ 298502 Handle 200 Connect responses with no content-length
+ 351516 Refactored sessions to better support nosql session managers

View File

@ -28,6 +28,8 @@ import java.util.Map;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.management.Attribute;
import javax.management.AttributeList;
@ -139,12 +141,11 @@ public class ObjectMBean implements DynamicMBean
}
catch (ClassNotFoundException e)
{
// The code below was modified to fix bug 332200.
// The issue was caused by additional information
// added to the message after the class name when
// Jetty is running in Apache Felix.
String klass = e.getMessage().split("[ ]", 2)[0];
if (klass.endsWith("MBean"))
// The code below was modified to fix bugs 332200 and JETTY-1416
// The issue was caused by additional information added to the
// message after the class name when running in Apache Felix,
// as well as before the class name when running in JBoss.
if (e.getMessage().contains(mName))
Log.ignore(e);
else
Log.warn(e);