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
[Tomcat 9.0.31] Missing WebSocket ServerContainer #900
Comments
@boris-petrov the place where this exception is thrown is here. This is the JSR 356 standard way to obtain the WebSocket I don't know why it was working before, but this code in CometD did not change because it's the standard and only way of accessing the WebSocket container. Have you asked the Tomcat project? |
@sbordet - I haven't asked there yet, no. So this cannot be an application-configuration issue but is rather a Tomcat problem for sure? Or it's possible I'm not doing something right? |
@boris-petrov I don't know. I don't think it's a CometD issue. Could be your application configuration, or how you configure Tomcat, or how you package your webapp. If it was Jetty, I would say that you have either misconfigured your JETTY_BASE if you use Jetty standalone server, or you have forgot some jar in the classpath if you use Jetty embedded. Try to enable DEBUG logging for Tomcat, and you should see if there are errors. |
@boris-petrov are you configuring Tomcat with HTTP/2 only (no HTTP/1.1) and WebSocket? |
Well, I do have this line: tomcat.connector.add_upgrade_protocol(Http2Protocol.new) But even commenting it out doesn't help. Also, I didn't change any code between the Tomcat version update so this was working before. I think this code doesn't remove the default HTTP/1.1 connector. Thanks for the suggestion! |
After updating Tomcat from 9.0.30 to 9.0.31 our integration tests don't want to even start due to:
I'm not sure whether this is a Tomcat issue or a CometD one or I'm doing something wrong but it was working before... how do I begin debugging this? I have these dependencies (among others):
CometD version is 3.1.12.
The text was updated successfully, but these errors were encountered: