我从Play 2.5版迁移到2.6版时出错。
以下是我已应用的操作列表:
>
sbt清洁
sbt编译
sbt更新
sbt日蚀
我有个例外
ProvisionException:无法设置,请查看以下错误:
使用安全性的类是
@Singleton
class EntityController @Inject() (val controllerComponents: ControllerComponents,
val config: Config,
val entities: EntityRepository,
val configextractor: ConfigExtractor,
val calendars: CalendarRepository,
val kpis: KpiExtractor,
val authz: EntityAuthorizer,
val playSessionStore: PlaySessionStore,
val searchService: SearchService,
implicit val ec: ComputeExecutionContext
) extends BaseController with Security[CommonProfile] with KpiAware{
我写了文件sbt。
name := """fons"""
organization := "com.luxottica.retail"
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.8"
// Dependencies
libraryDependencies ++= Seq(
ws,
filters,
cacheApi,
openId,
guice,
"commons-io" % "commons-io" % "2.5",
"com.github.romix.akka" %% "akka-kryo-serialization" % "0.5.0",
"com.github.simonedeponti" %% "play26-lettuce" % "0.1",
"joda-time" % "joda-time" % "2.9.9",
"org.mongodb.scala" %% "mongo-scala-driver" % "2.1.0",
"org.pac4j" % "play-pac4j" % "4.0.0",
"org.pac4j" % "pac4j-core" % "2.1.0",
"org.pac4j" % "pac4j-http" % "2.1.0",
"org.pac4j" % "pac4j-jwt" % "2.1.0" exclude("commons-io" , "commons-io"),
"org.pac4j" % "pac4j-ldap" % "2.1.0",
"com.microsoft.azure" % "applicationinsights-core" % "1.0.10",
"com.microsoft.azure" % "applicationinsights-logging-logback" % "1.0.10",
"com.github.t3hnar" %% "scala-bcrypt" % "3.0",
"org.scalariform" %% "scalariform" % "0.2.3"
)
// Test dependencies
libraryDependencies ++= Seq(
"org.scalatestplus.play" %% "scalatestplus-play" % "2.0.0" % Test,
"org.mockito" % "mockito-all" % "1.10.19" % Test,
"junit" % "junit" % "4.12" % Test,
"org.scalaz" %% "scalaz-core" % "7.1.1" % Test
)
resolvers ++= Seq(
"snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
"releases" at "http://oss.sonatype.org/content/repositories/releases",
"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases",
"Simone's repos" at "https://dl.bintray.com/simonedeponti/maven"
)
routesGenerator := InjectedRoutesGenerator
scalacOptions += "-deprecation"
evictionWarningOptions in update := EvictionWarningOptions.default.withWarnTransitiveEvictions(false)
// Adds additional packages into Twirl
//TwirlKeys.templateImports += "com.luxottica.retail.controllers._"
// Adds additional packages into conf/routes
// play.sbt.routes.RoutesKeys.routesImport += "com.luxottica.retail.binders._"
assemblyMergeStrategy in assembly := {
case m if m.toLowerCase.endsWith("manifest.mf") => MergeStrategy.discard
case m if m.toLowerCase.matches("meta-inf.*\\.sf$") => MergeStrategy.discard
case "log4j.properties" => MergeStrategy.discard
case m if m.toLowerCase.startsWith("meta-inf/services/") => MergeStrategy.filterDistinctLines
case "reference.conf" => MergeStrategy.concat
case _ => MergeStrategy.first
}
有什么需要改变的??
我们也遇到了同样的问题,我们将Scala升级到2.12后修复了它
https://github.com/pac4j/play-pac4j/issues/207
看起来sbt找不到子项目,但我不知道我该如何解决这个错误。顺便说一下,应用程序在2.3.10上可以无缝工作。 我希望有人能帮助我!提前道谢。
我正在尝试将我的项目的Ehcache从2.6升级到3.0版本。 任何net的替代品。旧金山。ehcache。元素和CacheExceptionHandler。 关于Ehcache 3的文档更少,有谁能给我们一些将Ehcache升级到版本3的提示吗。
以下URL用于在SpringBoot2.5中返回200 http://localhost:8080//actuator/health 升级到2.6后,它不再工作,返回404 Not Found 我发现这个错误是因为项目的一些集成测试失败了(请求返回404)。然后我注意到双斜杠,去掉后,问题就解决了。 我只是想了解是什么特性导致了这种新行为? 我把2.6的发行说明看了好几遍,但都没什么值得注意的。
当我尝试使用将android项目迁移到时,我收到一条错误消息。 错误信息 目前,以下库正在使用。 莫西 刀柄 房间 <代码>构建。渐变 有关更多详细信息,回购托管在此处-https://github.com/Abhimanyu14/finance-manager
我已从play framework 2.0迁移。8至2.1。0,一切看起来都很完美,但我发现以下错误: play.api.意外异常:意外异常[ObjectExistsExcture:缓存播放已经存在]在play.core.ReloadableApplication$$anonfun$get1$$anonfund$1.apply(Applicationrovider.scala:142)~[play
我将我的数据库后端从sqlite3更改为PostGRE。当我尝试运行迁移时,我有一个错误 要执行的操作:同步未迁移的应用程序:messages、avtofarm、smart_selects、staticfiles、thumbnail应用所有迁移:contenttypes、admin、callboard、auth、sessions同步未迁移的应用程序:创建表...正在运行延迟SQL...正在安装自定