gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 22:38:06 25 4
gpt4 key购买 nike

我在将 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com