title: How to use only Tomcat's shared lib folder?
body: <p>I have learned that we can add a <code>.jar</code> library inside a context's <code>WEB_INF\lib</code> folder to make that library accessible only to that context or at <code>CATALINA_HOME\lib</code> folder to make that library accessible for all my applications running on that Tomcat instance.</p>
  
  <p>I wanted to drop my jdbc driver library on Tomcat's shared library folder <code>CATALINA_HOME\lib</code> so all my applications could use it and also take advantage of Tomcat's connection pooling, but I having some issues. </p>
  
  <p>I am using NetBeans as my IDE and I have to define my jdbc driver on NetBeans so it will compile my code using the driver. But when NetBeans compiled my code for deployment in a <code>.war</code> it automatically places my driver <code>.jar</code> at the <code>WEB_INF\lib</code> folder inside the <code>.war</code>. </p>
  
  <p><strong>How can I avoid NetBeans from embedding my library on the <code>.war</code> archive so I can take advantage of Tomcat's shared library folder?</strong></p>