I would like to use web socket, and I started looking to do so with tomcat API. I\'m currently using Tomcat 7.0.37.
I tried to follow the example code from tomcat do
Is your inherited class MessageInbound implementing the Servlet interface? Can you provide the doGet implementation of your ChatWebSocketServlet or the MessageInbound class? Sorry man, your information is incomplete at all...
I solved the issue !
I tried to package the project with Maven on command line, and get this error:
[ERROR] class file for org.apache.coyote.http11.upgrade.UpgradeInbound not found
From this, I just added the following to the pom.xml:
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-coyote</artifactId>
<version>7.0.39</version>
<scope>provided</scope>
</dependency>
I hope this will help others with the same issue.