简体   繁体   中英

Tomcat 6.0.16 Undeploy doesn't remove MySQL Jar

I have following configuration on my system.

JDK 1.6
Apache Tomcat 6.0.16
Windows 7

and i am using mysql-connector-java-5.1.21 jar file.

I have also set following parameter in Tomcat context.xml file

<Context antiResourceLocking="true" antiJARLocking="true">

    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>

    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!--
    <Manager pathname="" />
    -->

    <!-- Uncomment this to enable Comet connection tacking (provides events
         on session expiration as well as webapp lifecycle) -->
    <!--
    <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
    -->

</Context>

Still when i undeploy my application it doesn't remove mysql-connector-java-5.1.21 jar everything else is removed.

when i tried to remove manually i got following error message:

File is open in Apache Tomcat

Please help

Tomcat 6 has some classpath locking problems while redeploying applications.

The solution that should always work is to stop the Tomcat and delete the application's directory with the jar in it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM