Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Tomcat 9.0.31] Missing WebSocket ServerContainer #900
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):
integrationTestRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-websocket:$tomcatVersion" integrationTestRuntimeOnly "org.cometd.java:cometd-java-server:$cometDVersion" integrationTestRuntimeOnly "org.cometd.java:cometd-java-websocket-javax-server:$cometDVersion"
CometD version is 3.1.12.
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?
@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.