2

Terracotta Ehcache 3.3 で実行されている Grails (1.3.4) アプリがあります。Terracotta インストールを最新の 3.5.1 に更新しようとしています。BuildConfig.groovy に次の行を追加しました。


inherits("global") {
    // uncomment to disable ehcache
    // excludes 'ehcache'
    runtime 'net.sf.ehcache:ehcache-core:2.4.2'
    runtime 'net.sf.ehcache:ehcache-terracotta:2.4.2'
    runtime "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

Terracotta 3.5.1 と Grails は異なるバージョンの SLF4J を使用しており、競合が発生していることを理解しています。BuildConfig から正確に何を除外する必要がありますか?

ありがとう、
イラクリス

4

1 に答える 1

0

grails dependency-reportどのjarがSFL4jJarに依存しているかを実行して確認します。

私にとって、この瓶は背中に大きな痛みを感じていました。Glassfish 3.1.1にデプロイする場合、同じ問題が発生します。これを解決するには、アプリケーションのwarを作成し、glassfishインストールのsfl4jjarをwarファイルのjarに置き換えます。

于 2011-08-23T01:21:29.937 に答える