Tomcat Ubuntu 服务器 18.04.2 上的 8.5.39

Tomcat 8.5.39 on Ubuntu Server 18.04.2

我的错是我不知道我在 AWS 中的一个生产 Ubuntu 服务器 运行 18.04.2 中打开了自动更新。 Tomcat 最近(自动)更新到 8.5.39,当我们重新启动 tomcat8 时,我们的代码部署失败,出现以下异常:

Caused by: java.lang.IllegalStateException: Attribute 'javax.websocket.server.ServerContainer' not found in ServletContext at org.springframework.util.Assert.state(Assert.java:73)

当我在 tomcat 中启用与安全相关的调试消息时,我可以看到以下内容:

policy: evaluate codesources:
    Policy CodeSource: (file:/usr/lib/jvm/java-8-oracle/jre/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/var/lib/tomcat8/webapps/api/WEB-INF/lib/spring-retry-1.2.2.RELEASE.jar <no signer certificates>)
policy: evaluation (codesource) failed
policy: evaluate codesources:
    Policy CodeSource: (file:/usr/java/packages/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/var/lib/tomcat8/webapps/api/WEB-INF/lib/spring-retry-1.2.2.RELEASE.jar <no signer certificates>)
policy: evaluation (codesource) failed
policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/var/lib/tomcat8/webapps/api/WEB-INF/lib/spring-retry-1.2.2.RELEASE.jar <no signer certificates>)
policy: evaluate principals:
    Policy Principals: []
    Active Principals: []

我真的不知道这些是否相关...我们需要做什么才能使 websocket "visible" 变为 Spring?我不知道在此更新之前此服务器上 运行 的 tomcat 的版本,但我们从未在 javax.websocket.server.ServerContainer not found 运行 that [=24] 上得到异常=] 版本。是否可以关闭任何 tomcat 安全检查?

这似乎是 Spring 上的一个已知问题: Spring Boot version 2.0.2.RELEASE and Tomcat version 8.5.39