I encountered an error while trying to destroy the filter named [tomcat websocket (jsr356) filter] of type [org.apache.tomcat.websocket.server.wsfilter].
To resolve this issue, I would:
The way I solved it was not by excluding the dependencies in my project but by changing the way I compile my project.
Now I use the command mvn clean install
from the IntelliJ command line for compiling. For executing, I move into the target directory so that I can execute the generated .jar in this folder with java -jar jarname.jar
from the IntelliJ command line.