I have servlet-api.jar in tomcat/lib folder and WEB-INF/lib/servlet-api 3.1.0 jar (i.e application dependent). I would like to know how to find which version of jar is currently in use when tomcat is running. https://tomcat.apache.org/tomcat-9.0-doc/class-loader-howto.html from here, i see order of class loading is as follows
Bootstrap classes of your JVM
/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
System class loader classes (described above)
Common class loader classes (described above)
but how to know if common class loader overrides the above jar present in WEB-INF/lib folder. can someone please answer.