升级到Play Framework 2.2 Securesocial问题.没有注册缓存插件

Sha*_*der 2 scala playframework playframework-2.0 securesocial

升级到Play 2.2时,我收到错误消息

例外:没有注册缓存插件.确保至少启用了一个CachePlugin实现

我知道这意味着类路径上可能有多个缓存,或者根本没有缓存.我尝试从依赖项中删除缓存,并排除其他依赖项中的任何播放导入,但没有任何更改错误.如果我从所有依赖项中删除缓存并排除("com.typesafe.play","*")我正确得到java.lang.NoClassDefFoundError:play/api/cache/Cache

但是只要我再添加缓存,我就会得到同样的错误,即没有注册缓存插件.

我的缓存依赖项,但运行播放依赖项| grep缓存

| com.typesafe.play:play-cache_2.10:2.2.2-RC2 | rm-play:rm-play_2.10:1.0-SNAPSHOT                   | As play-cache_2.10.jar|
| net.sf.ehcache:ehcache-core:2.6.6| com.typesafe.play:play-cache_2.10:2.2.2-RC2| As ehcache-core.jar                      |
| com.typesafe.play:play_2.10:2.2.2-RC2| com.typesafe.play:play-cache_2.10:2.2.2-RC2| As play_2.10.jar| net.sf.ehcache:ehcache-core:2.6.6|  
Run Code Online (Sandbox Code Playgroud)

我的Build.scala

import sbt._
import Keys._
import play.Project._

object ApplicationBuild extends Build {

  val appName = "rm-play"
  val appVersion = "1.0-SNAPSHOT"

  val appDependencies = Seq(
    javaCore,
    javaJdbc,
    javaEbean,
    cache,
    //Group id
    "com.google.guava" % "guava" % "14.0.1" ,
    "com.dbdeploy" % "maven-dbdeploy-plugin" % "3.0M3",
    "postgresql" % "postgresql" % "9.1-901.jdbc4",
    "joda-time" % "joda-time" % "2.3",
    "com.amazonaws" % "aws-java-sdk"% "1.6.11",
    "ws.securesocial" %% "securesocial" % "master-SNAPSHOT" exclude("com.typesafe.play", "*")
    )

    val main = play.Project(appName, appVersion, appDependencies).settings(
    resolvers += Resolver.sonatypeRepo("snapshots"),
    resolvers += Resolver.sonatypeRepo("releases")
    )

}
Run Code Online (Sandbox Code Playgroud)

plugin.sbt

// Comment to get more information during initialization
logLevel := Level.Warn

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.2-RC2")
Run Code Online (Sandbox Code Playgroud)

Sha*_*der 5

好吧,我的问题是,在我的application.conf文件中,我有一些从2.0遗留下来的缓存属性,评论它们帮助我得到上述错误.

#memcachedplugin=enabled
#memcached.namespace=srm
#ehcacheplugin=enabled
#memcached.host="127.0.0.1:11211"
Run Code Online (Sandbox Code Playgroud)