无法在tomcat6上启动grails war

时间:2012-02-09 22:35:29

标签: java grails groovy tomcat6

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

2 个答案:

答案 0 :(得分:2)

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

之外,您所展示的内容完全没有描述

答案 1 :(得分:0)

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