Hi all, Could someone please clarify this for me as i have always wondered about it but couldnt find any usefull information. Given the following directories
$JAVA_HOME/jdk/lib/ $JAVA_HOME/jdk/jre/lib/ $JAVA_HOME/jdk/jre/lib/ext $TOMCAT_HOME/common/lib $CATALINA_BASE/common/lib $CATALINA_BASE/myapp/WEB-INF/lib I know that even though it is not recommended i can practically place my jar files in any of the above directories and my application which is in $CATALINA_BASE/myapp should pick it up. The reason i am curios about this is i had the activation.jar in $CATALINA_BASE/myapp/WEB-INF/lib and recently found out that JDK1.6 also comes with activation.jar which it places in /usr/share/lib under Solaris. Now what i am wondering is what is the order in which the jar files will be loaded? For example, what will happen if i have ojdbc14.jar in all the above directories? Which one will be picked up first? And also is there a way to find out if there are duplicate jar files which one was used? Please note that i do know that it is not recommended to place jar files in non app lib folders. I just want to know the order in which the jar files will be loaded to satisfy my curiosity :). Thanks