cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [3/6] cxf git commit: Don't log the warning about the jmx stuff if the start method isn't there. Its not there on recent jetty
Date Fri, 14 Oct 2016 17:13:51 GMT
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/5e608961
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/5e608961
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/5e608961

Branch: refs/heads/3.0.x-fixes
Commit: 5e608961289daee797d7e307bda22fcec7bb9ba2
Parents: 964244c
Author: Daniel Kulp <dkulp@apache.org>
Authored: Thu Aug 25 13:54:46 2016 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Fri Oct 14 13:03:39 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/5e608961/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 23bfafb..e394c39 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
@@ -333,8 +333,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


Mime
View raw message