cxf-commits mailing list archives

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

ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 80e814d  [CXF-7775]embedded jetty websocket gets ClassCastException
80e814d is described below

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

    [CXF-7775]embedded jetty websocket gets ClassCastException
---
 .../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