如何配置deadbolt和播放身份验证依赖项

时间:2014-12-23 13:54:37

标签: playframework

我正在开发游戏框架认证模块。通过查看类型安全激活器提供的play-authenticate-mongo示例,我可以理解代码流。

现在,我正在尝试使用play authenticate和deadbolt开发示例项目。但是,当我配置依赖项时,我遇到了一些令人困惑的错误。

我已经在build.sbt,

中配置了以下依赖项
  name := "PlayAuthenticate"

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayJava)

libraryDependencies ++= Seq(
  "com.feth"      %% "play-authenticate" % "0.6.5-SNAPSHOT",
  javaJdbc,
  javaEbean,
  cache
)

resolvers ++= Seq(
 "play-easymail (release)" at "http://joscha.github.io/play-easymail/repo/releases/",
  "play-easymail (snapshot)" at "http://joscha.github.io/play-easymail/repo/snapshots/",
  "play-authenticate (release)" at "http://joscha.github.io/play-authenticate/repo/releases/",
  "play-authenticate (snapshot)" at "http://joscha.github.io/play-authenticate/repo/snapshots/"
)

play.Project.playJavaSettings

在这里,我发布了我的错误,

java.lang.NoSuchMethodException: play.core.server.NettyServer.mainDevHttpMode(pl
ay.core.SBTLink, play.core.SBTDocHandler, int)
        at java.lang.Class.getMethod(Unknown Source)
        at play.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$1.apply(PlayRun.sc
ala:232)
        at play.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$1.apply(PlayRun.sc
ala:91)
        at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:35)
        at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:34)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) java.lang.NoSuchMethodException: play.core.server.NettySer
ver.mainDevHttpMode(play.core.SBTLink, play.core.SBTDocHandler, int)
[error] Total time: 13 s, completed Dec 23, 2014 7:07:55 PM

请帮我解决此问题并了解此问题的根本原因。

TIA。,

0 个答案:

没有答案