0

我在将 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 很陌生,不确定这些错误是什么意思。请帮帮我。

提前致谢。

4

2 回答 2

2

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

于 2012-12-24T14:56:05.283 回答
1

JDBC 驱动程序是否存在于您的类路径中?

要解决这个问题,请在您的 jquery 插件上创建一个文件夹 lib

例如 ~/.grails/2.1.0/projects/YourProject/plugins/jquery-1.x.x/lib

并将 JDBC Driver jar 复制到此文件夹中。

希望这有帮助。

于 2012-12-24T22:11:23.723 回答