[jetty-user] jetty WebSockets in Tomcat
<[email protected]> Mon, 31 Oct 2011 18:24:17 +0200
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <[email protected]> |
Hello everybody!
I have a WebSocket(Servlet) communication setup with Jetty that
I am trying to embed into Tomcat. I register the Jetty
WebSocketServlet with
Tomcat through the equinox servletbridge in the hope of being able to
use
Tomcat, yet implement a WebSocket server-side on the same tcp port.
Should it be possible (by design?) to be able to use the jetty
WebSocket implementation
with a non-jetty servlet container?
I am stuck here at a NullPointerException in the
WebSocketFactory.upgrade:197 method:
HttpConnection http = HttpConnection.getCurrentConnection();
ConnectedEndPoint endp =
(ConnectedEndPoint)http.getEndPoint();
which looks to me as it expects the jetty embedded webserver
(HttpConnection
is part of jetty).
Is there any support planned into this direction/even possible? I
think this might
be useful for a broader group of users, as I didn't find any signs of
Tomcat
implementing WebSockets..
I am using the respectively most recent versions:
Tomcat 7.0.22
Jetty 8.0.4
Best Regards,
Thomas
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email