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