Library Accessing Hieararchy
In which order jar files is taking.. i have Oldversion jar file along with jdk lib开发者_JS百科 and new version in tomcat lib. which one the class loader takes.. 1.Inside JDK lib 2.Inside tomcat lib
This depends on the classloader and the settings you use. Probably it's your application's lib then tomcat finally jdk, but as said it depends.
Edit: if you have several versions of one jar in the same library it might also depend on how the JVM returns files which often is not deterministic. Therefore in most cases it's not a good idea to have multiple versions of a library in the same directory.
精彩评论