Grails war在tomcat中部署时显示错误

时间:2012-02-18 11:57:02

标签: grails

当我在我的本地计算机上使用grails run-war运行它时,我的grails war正常运行但是当我在我的ubuntu服务器上传时,我发现以下错误 在这里我要提到的一件重要的事情是(我已经在早些时候上传了相同的war文件,当它取消部署并部署它时显示错误) 我甚至在其他一些Windows系统中测试了相同的war文件,它运行良好

Feb 18, 2012 11:43:48 AM 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 18, 2012 11:43:48 AM 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@80fb85]) 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 18, 2012 11:43:48 AM 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 18, 2012 11:43:48 AM 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 18, 2012 11:43:48 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableBeanFactory$2@ef96]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.

2 个答案:

答案 0 :(得分:1)

查看Tomcat的日志目录。你只是看到写入stdout的内容,但是在另一个日志文件中可能有用的信息,例如localhost.2012-02-18.log或catalina.2012-02-18.log。 stacktrace.log中可能还有信息

答案 1 :(得分:0)

请清除tomcat的temp和work目录。并重新启动tomcat