Skip to content

Issue #5320 - using jetty-websocket-httpclient.xml within webapp#5374

Merged
lachlan-roberts merged 13 commits intojetty-9.4.xfrom
jetty-9.4.x-5320-WebSocketHttpClient
Nov 2, 2020
Merged

Issue #5320 - using jetty-websocket-httpclient.xml within webapp#5374
lachlan-roberts merged 13 commits intojetty-9.4.xfrom
jetty-9.4.x-5320-WebSocketHttpClient

Conversation

@lachlan-roberts
Copy link
Copy Markdown
Member

Issue #5320

Run the jetty-websocket-httpclient.xml with server class access if WebAppClassLoader is available.

…t in webapp

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…cess.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts lachlan-roberts marked this pull request as ready for review October 6, 2020 03:23
@lachlan-roberts lachlan-roberts requested review from gregw and sbordet and removed request for gregw October 6, 2020 03:31
@lachlan-roberts
Copy link
Copy Markdown
Member Author

@sbordet you asked me to add the case where we provide the websocket client classes in WEB-INF/lib, but the webapp still uses the server versions of org.eclipse.jetty.websocket. classes. So it is basically unusable, I get ClassCastException and LinkageError.

Don't you use some shaded jars in cometd to get around this problem?

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…client.xml

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…20-WebSocketHttpClient

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@@ -42,10 +37,8 @@

public class WebSocketExtensionFactory extends ExtensionFactory implements LifeCycle, Dumpable
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class extends a deprecated class -- should this class be deprecated as well?

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using WebSocketClient with jetty-websocket-httpclient.xml in a Jetty web application causes ClassCastException

3 participants