cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject [cxf] branch 3.2.x-fixes updated: [CXF-7775]embedded jetty websocket gets ClassCastException
Date Tue, 11 Sep 2018 03:14:29 GMT
This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch 3.2.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.2.x-fixes by this push:
     new cb95b99  [CXF-7775]embedded jetty websocket gets ClassCastException
cb95b99 is described below

commit cb95b99e61e0e5b88de43f101610f2562d7de680
Author: Freeman Fang <freeman.fang@gmail.com>
AuthorDate: Tue Sep 11 11:06:06 2018 +0800

    [CXF-7775]embedded jetty websocket gets ClassCastException
    
    (cherry picked from commit 80e814d2ed0d9ffe9e02a6e91bc31e8491fe69d3)
---
 .../cxf/transport/websocket/jetty9/Jetty9WebSocketDestination.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/rt/transports/websocket/src/main/java/org/apache/cxf/transport/websocket/jetty9/Jetty9WebSocketDestination.java
b/rt/transports/websocket/src/main/java/org/apache/cxf/transport/websocket/jetty9/Jetty9WebSocketDestination.java
index 6bae8b1..b134efb 100644
--- a/rt/transports/websocket/src/main/java/org/apache/cxf/transport/websocket/jetty9/Jetty9WebSocketDestination.java
+++ b/rt/transports/websocket/src/main/java/org/apache/cxf/transport/websocket/jetty9/Jetty9WebSocketDestination.java
@@ -56,7 +56,6 @@ import org.apache.cxf.workqueue.WorkQueueManager;
 import org.eclipse.jetty.server.Request;
 import org.eclipse.jetty.server.Server;
 import org.eclipse.jetty.server.handler.ContextHandler;
-import org.eclipse.jetty.webapp.WebAppContext;
 import org.eclipse.jetty.websocket.api.Session;
 import org.eclipse.jetty.websocket.api.WebSocketAdapter;
 import org.eclipse.jetty.websocket.server.WebSocketHandler;
@@ -122,7 +121,7 @@ public class Jetty9WebSocketDestination extends JettyHTTPDestination implements
     }
     
     Server getServer(ServletConfig config, ServletContext context) {
-        WebAppContext.Context c = (WebAppContext.Context)context;
+        ContextHandler.Context c = (ContextHandler.Context)context;
         ContextHandler h = c.getContextHandler();
         return h.getServer();
     }


Mime
View raw message