Does anyone have a good understanding on the following scenario?
A class can be deployed in tomcat in various locations. It can be simple .class or packed in a jar file. I am listing those options here:
apache-tomcat-6.0.35\shared\classes
apache-tomcat-6.0.35\shared\lib
apache-tomcat-6.0.35\lib
apache-tomcat-6.0.35\webapps\examples\WEB-INF\classes
apache-tomcat-6.0.35\webapps\examples\WEB-INF\lib
If the same class is deployed in all these locations (.class in classes folder hierarchy or packaged in a jar file and copied under *\lib\ hierarchy), what is the rule that tomcat's class loader would use to identify the class it would finally use?