title: Failed to destroy the filter named [Tomcat WebSocket (JSR356) Filter]
body: <p>while running spring boot application am getting below error</p>
  <pre><code>SEVERE: Failed to destroy the filter named [Tomcat WebSocket (JSR356) Filter] of type [org.apache.tomcat.websocket.server.WsFilter]
  java.lang.AbstractMethodError
      at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:301)
      at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:4598)
      at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5425)
      at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1400)
      at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1389)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:976)
      at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1400)
      at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1389)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:976)
      at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:498)
      at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:992)
      at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      at org.apache.catalina.startup.Tomcat.stop(Tomcat.java:496)
      at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.stopTomcat(TomcatWebServer.java:273)
      at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.stop(TomcatWebServer.java:331)
      at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:149)
      at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767)
      at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
      at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1311)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300)
      at com.rsvps.ProcessingApplication.main(ProcessingApplication.java:26)
  </code></pre>
  <p>And here is my pom.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
     &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
     &lt;groupId&gt;com.rsvps&lt;/groupId&gt;
     &lt;artifactId&gt;SparkStructuredStreaming&lt;/artifactId&gt;
     &lt;version&gt;0.0.1&lt;/version&gt;
     &lt;packaging&gt;jar&lt;/packaging&gt;
     &lt;name&gt;SparkStructuredStreaming&lt;/name&gt;
     &lt;description&gt;Read from Kafka via Structured Streaming and output the results to console&lt;/description&gt;
     &lt;properties&gt;
        &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
        &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
        &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
        &lt;scala.compat.version&gt;2.11&lt;/scala.compat.version&gt;
     &lt;/properties&gt;
     &lt;dependencies&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.scala-lang&lt;/groupId&gt;
           &lt;artifactId&gt;scala-library&lt;/artifactId&gt;
           &lt;version&gt;2.11.8&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
           &lt;artifactId&gt;spark-core_2.12&lt;/artifactId&gt;
           &lt;version&gt;3.0.0&lt;/version&gt;
         &lt;exclusions&gt;  
          &lt;exclusion&gt;
              &lt;groupId&gt;protobuf-java&lt;/groupId&gt;
              &lt;artifactId&gt;com.google.protobuf&lt;/artifactId&gt;
          &lt;/exclusion&gt;
        &lt;/exclusions&gt;           
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
           &lt;artifactId&gt;spark-streaming_2.12&lt;/artifactId&gt;
           &lt;version&gt;3.0.0&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
           &lt;artifactId&gt;spark-streaming-kafka_2.11&lt;/artifactId&gt;
           &lt;version&gt;1.6.3&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
           &lt;artifactId&gt;spark-sql-kafka-0-10_2.12&lt;/artifactId&gt;
           &lt;version&gt;3.0.0&lt;/version&gt;
        &lt;/dependency&gt;
  &lt;!--       &lt;dependency&gt;
           &lt;groupId&gt;org.mongodb.spark&lt;/groupId&gt;
           &lt;artifactId&gt;mongo-spark-connector_2.11&lt;/artifactId&gt;
           &lt;version&gt;2.2.1&lt;/version&gt;
        &lt;/dependency&gt; --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
           &lt;artifactId&gt;spark-sql_2.12&lt;/artifactId&gt;
           &lt;version&gt;3.0.0&lt;/version&gt;
        &lt;exclusions&gt;   
          &lt;exclusion&gt;
              &lt;groupId&gt;protobuf-java&lt;/groupId&gt;
              &lt;artifactId&gt;com.google.protobuf&lt;/artifactId&gt;
          &lt;/exclusion&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
          &lt;/exclusion&gt; 
          &lt;exclusion&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
          &lt;/exclusion&gt;  
          &lt;exclusion&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
          &lt;/exclusion&gt;  
          &lt;exclusion&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;jul-to-slf4j&lt;/artifactId&gt;
          &lt;/exclusion&gt;   
          &lt;exclusion&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
          &lt;/exclusion&gt;                                 
        &lt;/exclusions&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
           &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
           &lt;version&gt;2.4.2&lt;/version&gt;   
        &lt;exclusions&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-logging&lt;/artifactId&gt;
          &lt;/exclusion&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;/exclusion&gt;  
          &lt;exclusion&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;/exclusion&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
          &lt;/exclusion&gt;                      
        &lt;/exclusions&gt;              
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
           &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
           &lt;version&gt;2.4.2&lt;/version&gt; 
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
           &lt;artifactId&gt;spring-boot-starter-log4j&lt;/artifactId&gt;
           &lt;version&gt;1.3.8.RELEASE&lt;/version&gt;
        &lt;/dependency&gt;
     &lt;/dependencies&gt;
     &lt;build&gt;
        &lt;pluginManagement&gt;
           &lt;plugins&gt;
              &lt;plugin&gt;
                 &lt;groupId&gt;org.scala-tools&lt;/groupId&gt;
                 &lt;artifactId&gt;maven-scala-plugin&lt;/artifactId&gt;
                 &lt;version&gt;2.15.2&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                 &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                 &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                 &lt;version&gt;2.5.1&lt;/version&gt;
              &lt;/plugin&gt;
           &lt;/plugins&gt;
        &lt;/pluginManagement&gt;
        &lt;plugins&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;net.alchim31.maven&lt;/groupId&gt;
              &lt;artifactId&gt;scala-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1.6&lt;/version&gt;
              &lt;configuration&gt;
                 &lt;scalaCompatVersion&gt;2.11&lt;/scalaCompatVersion&gt;
                 &lt;scalaVersion&gt;2.11.8&lt;/scalaVersion&gt;
              &lt;/configuration&gt;
              &lt;!-- other settings--&gt;
           &lt;/plugin&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;executions&gt;
                 &lt;execution&gt;
                    &lt;phase&gt;compile&lt;/phase&gt;
                    &lt;goals&gt;
                       &lt;goal&gt;compile&lt;/goal&gt;
                    &lt;/goals&gt;
                 &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                 &lt;source&gt;1.8&lt;/source&gt;
                 &lt;target&gt;1.8&lt;/target&gt;
              &lt;/configuration&gt;
           &lt;/plugin&gt;
        &lt;/plugins&gt;
     &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  <p>can anyone please suggest what's wrong happening ? Do I need to exlude any dependency ? Not able to understand why its happening.</p>
  <p>I'm stuck in this issue from last 2 days. Its a spark structred streaming spring boot application.</p>
  <p>any suggestion will be appreciated.</p>
  <p>Thanks</p>
  <p>Update</p>
  <p>pom.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
     &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
     &lt;groupId&gt;com.rsvps&lt;/groupId&gt;
     &lt;artifactId&gt;SparkStructuredStreaming&lt;/artifactId&gt;
     &lt;version&gt;0.0.1&lt;/version&gt;
     &lt;packaging&gt;jar&lt;/packaging&gt;
     &lt;name&gt;SparkStructuredStreaming&lt;/name&gt;
     &lt;description&gt;Read from Kafka via Structured Streaming and output the results to console&lt;/description&gt;
     &lt;properties&gt;
        &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
        &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
        &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
        &lt;scala.compat.version&gt;2.11&lt;/scala.compat.version&gt;
     &lt;/properties&gt;
     &lt;dependencies&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.scala-lang&lt;/groupId&gt;
           &lt;artifactId&gt;scala-library&lt;/artifactId&gt;
           &lt;version&gt;2.11.8&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
           &lt;artifactId&gt;spark-core_2.12&lt;/artifactId&gt;
           &lt;version&gt;3.0.0&lt;/version&gt;
         &lt;exclusions&gt;  
          &lt;exclusion&gt;
              &lt;groupId&gt;protobuf-java&lt;/groupId&gt;
              &lt;artifactId&gt;com.google.protobuf&lt;/artifactId&gt;
          &lt;/exclusion&gt;
        &lt;/exclusions&gt;           
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
           &lt;artifactId&gt;spark-streaming_2.12&lt;/artifactId&gt;
           &lt;version&gt;3.0.0&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
           &lt;artifactId&gt;spark-streaming-kafka-0-10_2.12&lt;/artifactId&gt;
           &lt;version&gt;3.0.0&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
           &lt;artifactId&gt;spark-sql-kafka-0-10_2.12&lt;/artifactId&gt;
           &lt;version&gt;3.0.0&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
           &lt;artifactId&gt;spark-sql_2.12&lt;/artifactId&gt;
           &lt;version&gt;3.0.0&lt;/version&gt;
        &lt;exclusions&gt;   
          &lt;exclusion&gt;
              &lt;groupId&gt;protobuf-java&lt;/groupId&gt;
              &lt;artifactId&gt;com.google.protobuf&lt;/artifactId&gt;
          &lt;/exclusion&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
          &lt;/exclusion&gt; 
          &lt;exclusion&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
          &lt;/exclusion&gt;  
          &lt;exclusion&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
          &lt;/exclusion&gt;  
          &lt;exclusion&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;jul-to-slf4j&lt;/artifactId&gt;
          &lt;/exclusion&gt;   
          &lt;exclusion&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
          &lt;/exclusion&gt;                                 
        &lt;/exclusions&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
           &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
           &lt;version&gt;2.4.2&lt;/version&gt;   
        &lt;exclusions&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-logging&lt;/artifactId&gt;
          &lt;/exclusion&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;/exclusion&gt;  
          &lt;exclusion&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;/exclusion&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
          &lt;/exclusion&gt;                      
        &lt;/exclusions&gt;              
        &lt;/dependency&gt;
        &lt;dependency&gt;
              &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt;
              &lt;artifactId&gt;hadoop-hdfs&lt;/artifactId&gt;
              &lt;version&gt;3.0.0&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
           &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
           &lt;version&gt;2.4.2&lt;/version&gt; 
        &lt;exclusions&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-logging&lt;/artifactId&gt;
          &lt;/exclusion&gt;
        &lt;/exclusions&gt;         
        &lt;/dependency&gt;
     &lt;/dependencies&gt;
     &lt;build&gt;
        &lt;pluginManagement&gt;
           &lt;plugins&gt;
              &lt;plugin&gt;
                 &lt;groupId&gt;org.scala-tools&lt;/groupId&gt;
                 &lt;artifactId&gt;maven-scala-plugin&lt;/artifactId&gt;
                 &lt;version&gt;2.15.2&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                 &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                 &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                 &lt;version&gt;2.5.1&lt;/version&gt;
              &lt;/plugin&gt;
           &lt;/plugins&gt;
        &lt;/pluginManagement&gt;
        &lt;plugins&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;net.alchim31.maven&lt;/groupId&gt;
              &lt;artifactId&gt;scala-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1.6&lt;/version&gt;
              &lt;configuration&gt;
                 &lt;scalaCompatVersion&gt;2.11&lt;/scalaCompatVersion&gt;
                 &lt;scalaVersion&gt;2.11.8&lt;/scalaVersion&gt;
              &lt;/configuration&gt;
              &lt;!-- other settings--&gt;
           &lt;/plugin&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;executions&gt;
                 &lt;execution&gt;
                    &lt;phase&gt;compile&lt;/phase&gt;
                    &lt;goals&gt;
                       &lt;goal&gt;compile&lt;/goal&gt;
                    &lt;/goals&gt;
                 &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                 &lt;source&gt;1.8&lt;/source&gt;
                 &lt;target&gt;1.8&lt;/target&gt;
              &lt;/configuration&gt;
           &lt;/plugin&gt;
        &lt;/plugins&gt;
     &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>