I am wondering about the following: I have a Tomcat 7 dedicated to a single webapp. Is there a point in putting any jar inside the $TOMCAT_HOME/lib directory? In the documentation it says:
Therefore, from the perspective of a web application, class or resource loading looks in the following repositories, in this order:
- Bootstrap classes of your JVM
- System class loader classes (described above)
- /WEB-INF/classes of your web application
- /WEB-INF/lib/*.jar of your web application
- Common class loader classes (described above)
So, if I am reading this correctly, there is no reason I should put avtivemq or commons-dbcp. I can instead place them in my webapps lib folder and be absolutely certain that they will be picked up first. If that's so, is there any other scenario that would make sense for me to use the $TOMCAT_HOME/lib directory? If not, could you please explain where is the above flawed?
Thanks,
G.