2012-02-18 103 views
1

当我在本地机器上运行grails run-war时,我的grails战争运行良好,但当我上传到我的ubuntu服务器时,我给了我以下错误 这里我需要一件重要的事情一提的是(我已经上传相同war文件更早一天,它是工作,当我取消部署,并部署它,它显示我的错误) 我甚至测试相同的战争文件中的某些其他的Windows系统也工作正常在Tomcat中部署Grails战争时显示错误

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 [[email protected]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.groov[email protected]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. 
+0

而且,这个警告后它是否工作?其实它只是*未部署*应用程序,不*部署* – 2012-02-18 12:36:21

+0

@splix该项目未运行您能帮助我们 – 2012-02-18 13:01:27

+0

您是否还有其他错误?也许'PermGem space'错误?您是否尝试重新启动Tomcat? – 2012-02-18 13:06:56

回答

1

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

+0

我已检查所有日志文件,但我找不到任何其他错误任何帮助请 – 2012-02-21 05:16:17

+0

我发现这样的错误无法创建目录:/usr/share/tomcat6/.grails/projects/redkanproject/searchable-index/production/index/gallery – 2012-02-21 05:42:29

+1

您可以指定Searchable插件的Lucene索引的位置,以指向具有'myproject/grails-app/conf/Searchable.groovy'中的'compassConnection'属性的可写目录 - 请参阅https://svn.codehaus。 org/grails-plugins/grails-searchable/trunk/src/conf/Searchable.groovy以获得描述使用情况的评论。如果你还没有运行'grails install-searchable-config'来创建文件。 – 2012-02-21 06:37:46

0

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

+0

我重新启动了它6次以上,并且还清除了我的tomcats工作目录中的所有temp和webapps文件 – 2012-02-21 05:17:22