Java Tomcat7 websocket LIB与JHipster'冲突;s

Java Tomcat7 websocket LIB与JHipster'冲突;s,java,dependencies,tomcat7,jhipster,spring-websocket,Java,Dependencies,Tomcat7,Jhipster,Spring Websocket,我已经用JHipster 4.14.1构建了后端应用程序,它使用WebSocket。 我需要将此应用程序部署到Tomcat7x 应用程序成功部署,但当我尝试连接到其websocket端点时,我得到: Caused by: java.lang.ClassCastException: org.apache.tomcat.websocket.server.WsServerContainer cannot be cast to javax.websocket.server.ServerContainer

我已经用JHipster 4.14.1构建了后端应用程序,它使用WebSocket。 我需要将此应用程序部署到Tomcat7x

应用程序成功部署,但当我尝试连接到其websocket端点时,我得到:

Caused by: java.lang.ClassCastException: org.apache.tomcat.websocket.server.WsServerContainer cannot be cast to javax.websocket.server.ServerContainer
对于我试图添加的解决方案

<dependency>
        <groupId>javax.websocket</groupId>
        <artifactId>javax.websocket-api</artifactId>
        <version>1.0</version>
        <scope>provided</scope>
</dependency>

javax.websocket
javax.websocket-api
1
假如
但那没用


感谢您的帮助。

JHipster嵌入了Undertow服务器及其依赖项,您是否排除了它们?我已将spring boot starter Undertow标记为提供的,但没有帮助