-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #4722 - remove websocket-servlet #4723
Conversation
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
e0ba21e
to
89c4504
Compare
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
I'm getting a failure on this branch for
Any idea what would cause this @joakime @olamy , is this something to do with the recent logging changes? |
…hey try to load slf4j impl Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
@lachlan-roberts should be fixed with this commit 5199e78 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
- Fix packages exposed in the websocket configuration - Make servlet dependency for websocket-util optional Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still a 👍 from me
…jpms Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@joakime the change to make The last commit got it working working but giving a JPMS warning as there are servlet classes in the public signature of
As an alternative I could introduce another module which is shared only between both |
@lachlan-roberts I'm loath to introduce more modules. I'm sure JPMS can deal with optional/provided dependencies.... ask @sbordet for advice or look for other examples of provided dependencies in the code base. |
- This module contains the WebSocketUpgradeFilter. - Also has an internal package with the components used to implement websocket upgrades common to both the jetty and javax websocket implementations. Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
I pushed a commit to introduce a It only exports the internal package to |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
The osgi tests on this branch are failing. |
jetty-osgi/pom.xml
Outdated
@@ -90,7 +90,7 @@ | |||
</dependency> | |||
<dependency> | |||
<groupId>org.eclipse.jetty</groupId> | |||
<artifactId>jetty-websocket</artifactId> | |||
<artifactId>jetty-websocket</artifactId> <!-- TODO: is this even right? --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@janbartel while debugging I saw this, any idea what this is for? I don't know what this is referring to, I don't think there is any jetty-websocket
artifactId in jetty 10 so I thought this should be an errror.
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
a4541d5
to
3a3c5e5
Compare
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…WebSocketServlet Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Issue #4722
Removed the
websocket-servlet
layer which was resulting in exposingwebsocket-core
classes.WebSocketServlet
andWebSocketServletFactory
have been merged intoJettyWebSocketServlet
andJettyWebSocketServletFactory
which were extending them previously.The other classes including
WebSocketUpgradeFilter
andWebSocketMapping
were moved into the new packageorg.eclipse.jetty.websocket.util.server
ofwebsocket-util
, but maybe these should be inwebsocket-core
instead