Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 48c445d20 -> 180732089


Don't log the warning about the jmx stuff if the start method isn't there.  Its 
not there on recent jetty


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/b25154e0
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b25154e0
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b25154e0

Branch: refs/heads/3.1.x-fixes
Commit: b25154e078365eb65b41da21c0c496e31fd1cba8
Parents: 48c445d
Author: Daniel Kulp <[email protected]>
Authored: Thu Aug 25 13:54:46 2016 -0400
Committer: Daniel Kulp <[email protected]>
Committed: Thu Aug 25 14:04:01 2016 -0400

----------------------------------------------------------------------
 .../transport/http_jetty/JettyHTTPServerEngineFactory.java    | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/b25154e0/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngineFactory.java
----------------------------------------------------------------------
diff --git 
a/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngineFactory.java
 
b/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngineFactory.java
index 4e0d91e..bd468a6 100644
--- 
a/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngineFactory.java
+++ 
b/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngineFactory.java
@@ -338,8 +338,11 @@ public class JettyHTTPServerEngineFactory {
                 
                 mBeanContainer = (Container.Listener) cls.
                     getConstructor(MBeanServer.class).newInstance(mbs);
-                
-                cls.getMethod("start", (Class<?>[]) 
null).invoke(mBeanContainer, (Object[]) null);
+                try {
+                    cls.getMethod("start", (Class<?>[]) 
null).invoke(mBeanContainer, (Object[]) null);
+                } catch (NoSuchMethodException mex) {
+                    //ignore, Jetty 9.1 removed this methods and it's not 
needed anymore
+                }
             } catch (Throwable ex) {
                 //ignore - just won't instrument jetty.  Probably don't have 
the
                 //jetty-management jar available

Reply via email to