hudson自动构建时 undeploy tomcat 报错

tomcat 6.0.35 undeploy时报错:


严重: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-9-9 10:28:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [AWT-Windows] but has failed to stop it. This is very likely to create a memory leak.
2012-9-9 10:28:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.

似乎是因为tomcat6.0.20 之后的版本,加了一个JreMemoryLeakPreventionListener,防止内存溢出的,有问题。


只好换成 tomcat 6.0.20,不然每次hudson自动构建发布时,都报上面那个错,实在受不了。


或者,如果不想更换tomcat版本的话,可以在hudson里,你的job,配置 - Build - add build step - execute windows batch command ,执行一个自己的脚本,先把tomcat服务关闭;删除webapps下的应用;启动tomcat。

net stop tomcat6
rd /q /s E:\epp\apache-tomcat-6.0.35-epp\webapps\ROOT
del /q E:\epp\apache-tomcat-6.0.35-epp\webapps\ROOT.war
net start tomcat6


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值