简体   繁体   English

Tomcat 6.0.16取消部署不会删除MySQL Jar

[英]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. 我正在使用mysql-connector-java-5.1.21 jar文件。

I have also set following parameter in Tomcat context.xml file 我还在Tomcat context.xml文件中设置了以下参数

<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. 仍然当我取消部署我的应用程序时,它不会删除mysql-connector-java-5.1.21 jar,所有其他内容都会被删除。

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. Tomcat 6在重新部署应用程序时存在一些类路径锁定问题。

The solution that should always work is to stop the Tomcat and delete the application's directory with the jar in it. 始终有效的解决方案是停止Tomcat并删除其中包含jar的应用程序目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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