无法在 tomcat6 上启动 grails 战争

发布于 2025-01-04 07:59:53 字数 2114 浏览 6 评论 0原文

当我尝试部署 grails 应用程序时,我在 catalina.out 中收到此消息:

Feb 9, 2012 10:32:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 9, 2012 10:32:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/application] startup failed due to previous errors
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transaction synchronizations]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Prototype beans currently in creation]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transactional resources]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.codehaus.groovy.runtime.GroovyCategorySupport.MyThreadLocal] (value [org.codehaus.groovy.runtime.GroovyCategorySupport$MyThreadLocal@3872a921]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.

运行 Grails 2.0、Tomcat 6、Ubuntu 10.04。我以前从未见过这样的事情,这是我正在做的事情/可以修复的事情还是Tomcat的设置方式?

I'm getting this in catalina.out when I try to deploy a grails application:

Feb 9, 2012 10:32:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 9, 2012 10:32:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/application] startup failed due to previous errors
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transaction synchronizations]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Prototype beans currently in creation]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transactional resources]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Feb 9, 2012 10:32:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [org.codehaus.groovy.runtime.GroovyCategorySupport.MyThreadLocal] (value [org.codehaus.groovy.runtime.GroovyCategorySupport$MyThreadLocal@3872a921]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.

Running Grails 2.0, Tomcat 6, Ubuntu 10.04. I haven't seen anything like this before, is this something I'm doing / can fix or something with how Tomcat is setup?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

单身情人 2025-01-11 07:59:53

真正的错误将在日志目录中的另一个日志文件中。线程泄漏消息是一个问题,但在关闭时这是一个问题。您的启动失败是问题所在,除了 SEVERE: Context [/application]startup failed due to previousErrors 之外,您所显示的内容根本没有描述它

The real error will be in another log file in the logs directory. The thread leak messages are a concern, but that's an issue when shutting down. Your failure to startup is the problem and it's not described at all in what you've shown other than SEVERE: Context [/application] startup failed due to previous errors

柠北森屋 2025-01-11 07:59:53

您是否有机会运行后台线程插件?我见过 Tomcat 无法响应,因为该插件不放弃线程并阻止服务器正确关闭。

Are you running backgroundthread plugin by any chance? I have seen Tomcat fail to respond because of the plugin which does not give up the thread and prevents the server from shutting down correctly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文