【问题标题】:Unable to start grails war on tomcat6无法在 tomcat6 上启动 grails 战争
【发布时间】:2012-02-09 22:35:28
【问题描述】:

当我尝试部署 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 的设置方式有关?

【问题讨论】:

    标签: java grails groovy tomcat6


    【解决方案1】:

    真正的错误将在日志目录中的另一个日志文件中。线程泄漏消息是一个问题,但在关闭时这是一个问题。您无法启动是问题所在,除了SEVERE: Context [/application] startup failed due to previous errors

    【讨论】:

      【解决方案2】:

      您是否正在运行 backgroundthread 插件?我看到Tomcat没有响应是因为插件没有放弃线程并阻止服务器正确关闭。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-07-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-07-23
        相关资源
        最近更新 更多