【发布时间】:2014-06-09 05:17:10
【问题描述】:
我有一个非常简单的应用程序,我想用死锁从 2.1.x 升级到 2.3.0。虽然 Deadbolt 还没有正式推出 2.3.x,但 2.2.x 的版本应该已经足够好了(同样,这个错误发生在 2.2.x 上)。
我有一个简单的模板检查主题是否存在
@subjectPresent() { <p>Hi</p> }
但我得到一个编译器错误
bad symbolic reference. A signature in subjectPresent.class refers to term templates in package play which is not available.
It may be completely missing from the current classpath, or the version on the classpath might be incompatible with the version used when compiling subjectPresent.class.
现在,这似乎指向某种路径问题,但我只是不确定如何解决它。
我的 build.sbt 有合适的解析器
resolvers += Resolver.url("Objectify Play Repository", url("http://schaloner.github.io/releases/"))(Resolver.ivyStylePatterns),
resolvers += Resolver.url("Objectify Play Snapshot Repository", url("http://schaloner.github.io/snapshots/"))(Resolver.ivyStylePatterns)
并声明依赖关系
val appDependencies = Seq(
// .....
"be.objectify" %% "deadbolt-java" % "2.2.1-RC2"
)
有什么建议吗?
【问题讨论】:
标签: java playframework-2.2 deadbolt playframework-2.3