tomcat - 部署到tomcat时出现线程本地错误

标签 tomcat grails memory memory-leaks

我在将 grails 项目部署到 tomcat webapp 目录时遇到问题。

查看 catalina.out 日志文件,我可以看到以下错误:

SEVERE: The web application [/test-0.1] 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.
Dec 24, 2012 10:41:52 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/test-0.1] created a ThreadLocal with key of type [org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableBeanFactory$2] (value [org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableBeanFactory$2@57390ad3]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

我是 Tomcat 的新手,不确定这些错误是什么意思。请帮帮我。

提前致谢。

最佳答案

将 JDBC 驱动程序 jar 文件复制到 tomcat/lib 目录可以解决此问题。

关于tomcat - 部署到tomcat时出现线程本地错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14020335/

相关文章:

linux - 在 apache 网络服务器上使用 tomcat for jsp,ubuntu

xml - 用grails解析XML的问题

linux - Docker 容器中的尾部 : Cannot allocate memory

java - 为什么 Tomcat 在尝试对 MySQL 设置自动提交时挂起?

java - org.apache.naming.resources 包是否已在 tomcat 8.0.20 中删除?

ajax - Ajax和Grails渲染

c++ - 是什么导致 C++ STL 列表节点内存分配中的段错误?

Java:将大量二维数组分割成机器页面大小的倍数的 block

tomcat - 如何根据tomcat日志计算PV,ip,PU

rest - grails-RestClientBuilder