Grails1.3.4/Terracotta3.5.1:部署.war文件失败

Grails1.3.4/Terracotta3.5.1:部署.war文件失败,grails,ehcache,slf4j,terracotta,Grails,Ehcache,Slf4j,Terracotta,我们有一个运行Terracotta Ehcache 3.3的Grails(1.3.4)应用程序。我们正在尝试将Terracotta安装更新为最新版本3.5.1。我在BuildConfig.groovy中添加了以下行: 继承(“全球”){ //取消注释以禁用ehcache //排除“ehcache” 运行时'net.sf.ehcache:ehcache核心:2.4.2' 运行时'net.sf.ehcache:ehcache terracotta:2.4.2' 运行时“org.terracotta

我们有一个运行Terracotta Ehcache 3.3的Grails(1.3.4)应用程序。我们正在尝试将Terracotta安装更新为最新版本3.5.1。我在BuildConfig.groovy中添加了以下行:


继承(“全球”){
//取消注释以禁用ehcache
//排除“ehcache”
运行时'net.sf.ehcache:ehcache核心:2.4.2'
运行时'net.sf.ehcache:ehcache terracotta:2.4.2'
运行时“org.terracotta:terracotta-toolkit-1.2-runtime:3.1.0”
}

我能够构建.war文件,但当我尝试部署它时,我得到:

SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
Jun 14, 2011 1:16:36 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 14, 2011 1:16:36 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/cooldeals-0.3.2] startup failed due to previous errors

SLF4J:您的SLF4J绑定请求的版本1.5.8与[1.6]不兼容
SLF4J:有关更多详细信息,请参阅。
2011年6月14日下午1:16:36 org.apache.catalina.core.StandardContext开始
严重:listenerStart错误
2011年6月14日下午1:16:36 org.apache.catalina.core.StandardContext开始
严重:由于以前的错误,上下文[/cooldeals-0.3.2]启动失败

我知道Terracotta 3.5.1和Grails使用的是不同版本的SLF4J,其中存在一些冲突。BuildConfig中到底应该排除什么

谢谢,

Iraklis

运行
grails依赖关系报告
,检查哪些Jar对SFL4j Jar有依赖关系


对我来说,这个罐子让我背上很痛。在glassfish 3.1.1上部署时,我遇到了相同的问题。我通过创建我的应用程序的war并用war文件中的jar替换glassfish安装中的sfl4j jar来解决这个问题。

运行
grails dependency report
并检查哪些jar依赖于sfl4j jar

对我来说,这个罐子让我背上很痛。在glassfish 3.1.1上部署时,我遇到了相同的问题。我通过创建我的应用程序的war并用war文件中的jar替换glassfish安装中的sfl4j jar解决了这个问题


SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
Jun 14, 2011 1:16:36 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 14, 2011 1:16:36 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/cooldeals-0.3.2] startup failed due to previous errors