【问题标题】:Grails war shows errors while deploying in tomcatGrails 战争在 tomcat 中部署时显示错误
【发布时间】:2012-02-19 00:45:00
【问题描述】:

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

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.

【问题讨论】:

  • 并且,在出现此警告后它是否有效?实际上它只是关于 undeployed 应用程序,而不是 deployed
  • @splix 项目没有运行你能帮我们吗
  • 您还有其他错误吗?也许PermGem space 错误?您是否尝试重新启动 Tomcat?
  • 不是一个真正的答案,但我们遇到了类似的问题。原来带有 JNDI 数据库配置的 xml 文件未包含在 WAR 中,并且不知何故从 /etc/tomcat6...

标签: grails


【解决方案1】:

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

【讨论】:

  • 我已经检查了所有的日志文件,但我找不到任何其他错误请帮助
  • 我发现了一些类似这样的错误无法创建目录:/usr/share/tomcat6/.grails/projects/redkanproject/searchable-index/production/index/gallery
  • 您可以使用myproject/grails-app/conf/Searchable.groovy 中的compassConnection 属性指定可搜索插件的Lucene 索引的位置,以指向可写目录 - 请参阅svn.codehaus.org/grails-plugins/grails-searchable/trunk/src/… 以获取具有描述用法的cmets 的模板。如果您还没有创建文件,请运行grails install-searchable-config
【解决方案2】:

请清除tomcat的临时目录和工作目录。并重启tomcat

【讨论】:

  • 我重新启动它超过 6 次,并且我从我的 tomcats 工作目录中清除了所有 temp 和 webapps 文件
猜你喜欢
  • 2018-08-30
  • 2013-09-14
  • 1970-01-01
  • 2013-11-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-05-27
相关资源
最近更新 更多