title: Tomcat 6.0.16 Undeploy doesn't remove MySQL Jar
body: <p>I have following configuration on my system.</p>
  
  <pre><code>JDK 1.6
  Apache Tomcat 6.0.16
  Windows 7
  </code></pre>
  
  <p>and i am using <code>mysql-connector-java-5.1.21</code> jar file.</p>
  
  <p>I have also set following parameter in Tomcat context.xml file</p>
  
  <pre><code>&lt;Context antiResourceLocking="true" antiJARLocking="true"&gt;
  
      &lt;!-- Default set of monitored resources --&gt;
      &lt;WatchedResource&gt;WEB-INF/web.xml&lt;/WatchedResource&gt;
  
      &lt;!-- Uncomment this to disable session persistence across Tomcat restarts --&gt;
      &lt;!--
      &lt;Manager pathname="" /&gt;
      --&gt;
  
      &lt;!-- Uncomment this to enable Comet connection tacking (provides events
           on session expiration as well as webapp lifecycle) --&gt;
      &lt;!--
      &lt;Valve className="org.apache.catalina.valves.CometConnectionManagerValve" /&gt;
      --&gt;
  
  &lt;/Context&gt;
  </code></pre>
  
  <p>Still when i undeploy my application it doesn't remove <code>mysql-connector-java-5.1.21</code> jar everything else is removed.</p>
  
  <p>when i tried to remove manually i got following error message:</p>
  
  <pre><code>File is open in Apache Tomcat
  </code></pre>
  
  <p>Please help</p>