I\'m using org.apache.catalina.filters.CorsFilter in my webapp. So I specify the maven dependency
org.apache.tomcat
This worked for me:
org.apache.tomcat
tomcat-catalina
7.0.42
provided
Trying 7.0.50 also worked. Can you double-check that there are no competing jar file versions lying around? Perhaps there is an older version without the class actually getting used by the JVM. Under Linux, "ls -l /proc/$CATALINA_PID/fd", may show which jar file is being used.
Also make sure to run this in a recent enough version of the Tomcat server.