Could it be okay to put an oracle driver jar inside the web application's /lib directory, or is it more beneficial practice to put it in tomcat's lib directory?

I am curious about this because on my small local host, my web application runs fine using the jar within the web app's /lib directory, however when I slowly move the web application to some real development server, I still receive null pointer exceptions when attempting to shut an association pool object. I figured this problem might be why I am not able to free the bond.