cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6402] Anoter try at initializing contexts from the existing server
Date Mon, 18 May 2015 20:48:49 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 816af111b -> 8c475c7cc


[CXF-6402] Anoter try at initializing contexts from the existing server


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

Branch: refs/heads/3.0.x-fixes
Commit: 8c475c7cc6ec6d1bf3b96b24a2c0fcfd41ee090b
Parents: 816af11
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Mon May 18 21:46:33 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Mon May 18 21:48:19 2015 +0100

----------------------------------------------------------------------
 .../cxf/transport/http_jetty/JettyHTTPServerEngine.java       | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/8c475c7c/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
----------------------------------------------------------------------
diff --git a/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
b/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
index 5920233..5ed567a 100644
--- a/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
+++ b/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
@@ -320,9 +320,10 @@ public class JettyHTTPServerEngine implements ServerEngine {
             checkRegistedContext(url);
         }
         if (contexts == null) {
-            contexts = new ContextHandlerCollection();
-            if (server != null) {
-                server.setHandler(contexts);
+            if (server != null && server.getHandler() instanceof ContextHandlerCollection)
{
+                contexts = (ContextHandlerCollection) server.getHandler();
+            } else {
+                contexts = new ContextHandlerCollection();    
             }
         }
         


Mime
View raw message