Using web socket with Tomcat 7

前端 未结 2 1942
北恋
北恋 2021-01-01 00:53

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

2条回答
  •  难免孤独
    2021-01-01 01:44

    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:

    
        org.apache.tomcat
        tomcat-coyote
        7.0.39
        provided
    
    

    I hope this will help others with the same issue.

提交回复
热议问题