I was searching about this with many sources from the internet. But still I couldn't find a specific resource which exactly addresses my question.
In tomcat, is there any order in classes are loaded at startup. Just imagine a situation like this.
I have myApp.war file inside webapps. And inside that war, I have some library (say mylib-2.5.jar bundled inside it). And imagine, I have also placed the same library in different version (say mylib-2.8.jar) inside the /lib folder.
So when I start up my application, and call a particular end point, which lib (version) will have the chance to be loaded (on demand) into JVM by a class loader?
And what are the chances for a lib conflict? and what are the reasons for that?