我的服务部署在tomcat上。最近我们将tomcat升级到了9.0.43。当服务重新启动时(tomcat作为服务安装在windows上),它会抛出以下错误:
SEVERE [Thread-19] org.apache.catalina.core.ApplicationFilterConfig.release Failed to destroy the filter named [Tomcat WebSocket (JSR356) Filter] of type [org.apache.tomcat.websocket.server.WsFilter]
java.lang.AbstractMethodError: Receiver class org.apache.tomcat.websocket.server.WsFilter does not define or inherit an implementation of the resolved method abstract destroy()V of interface javax.servlet.Filter.
at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:301)
我调查了一下,找出了根本原因。早些时候有一个销毁中的方法实现tomcat-websocket.jar在现在缺失的lib\tomcat-websocket\org\apache\tomcat\websocket\server\WsFilter.class,下的WsFilter.class中。
现在我该怎么继续呢?有什么想法吗?
发布于 2021-02-25 06:55:19
自Servlet 4.0 API以来,init
和close
方法Filter
接口具有默认实现。检查您是否正在部署另一个(或更早的)javax.servlet-api.jar
使用您的应用程序。
https://stackoverflow.com/questions/66363359
复制相似问题