Your mistake was adding catalina.jar
to WEB-INF/lib
. You should not set the CLASSPATH
environment variable.
If you write a Valve, the Valve itself needs to be in Tomcat's lib/
directory. You can't deploy a Valve along with your web application.