2017-10-23 7 views
0

プレイバージョン2.5から2.6への移行中にエラーが発生しました。ここで再生:マイグレーション2.5から2.6:エラーProvisionException

は、私が適用されてきたアクションのリストです:

  • SBTクリーン

  • SBTは

  • SBTは、私が得た

    日食

  • SBTの更新をコンパイルこの例外

    ProvisionException:プロビジョニングすることができない、次のエラーを参照してください。

    1)エラーを注入コンストラクタ、java.lang.NoClassDefFoundErrorが:ORG/pac4j /演劇/スカラ座/セキュリティ$ controllers.EntityControllerでクラス (として、EntityController .scala:50) controllers.EntityController.class(EntityController.scalaで:50) router.Routesの4番目のパラメータのcontrollers.EntityController を配置しながら(Routes.scala:50) router.Routesにしばらくを配置しながらplay.api.inject.RoutesProviderを探している間にplay.api.routing.Routerを探している間に play.api.http.JavaCompatibleHttpRequestHandlerの第1パラメータ(HttpRequestHandler.scala:222)。 play.api.DefaultApplicationの6パラメータのplay.api.http.HttpRequestHandler を配置しながらplay.api.http.JavaCompatibleHttpRequestHandler を配置しながら(Application.scala:236)play.api.DefaultApplication.class(Application.scala:235)で :java.lang.NoClassDefFoundErrorがplay.api.DefaultApplication を配置しながらplay.api.Application を配置しながら 起因します: org/pac4j/play/scala/Security $ class 、controllers.EntityController。(EntityController.scala:60) at controllers.EntityController $$ FastClassByGuice $$ f46ad4b6.newInstance() at com.google.inject.internal.DefaultC (コンストラクタ・インジェクタ:コンストラクタ・インジェクタ)。 9035) at com.google.inject.internal.ConstructorBindingImpl $ Factory.get(ConstructorBindingImpl.java:268) at com.google.inject.internal.ProviderToInternalFactoryAdapter $ 1.call(ProviderToInternalFactoryAdapter.java:46) at com.google .inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) (com)com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.internal.SingletonScope $ 1.get SingletonScope.java:194)com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)にある com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) (com.google.inject.internal) SingleParameterInjector.getAll(SingleParameterInjector.java:62) com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:110) at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:90) (com.google.inject.internal.ConstructorBindingImpl $ Factory.get(ConstructorBindingImpl.java:268) at com。google.inject.internal.InjectorImpl $ 2 $ 1.call(InjectorImpl.java:1019) 、com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) 、com.google.inject.internal.InjectorImpl $ 2 .get(InjectorImpl.java:1015) com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054) at play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:409) play.api.inject.ContextClassLoaderInjector $$ anonfun $ instanceOf $ 3.apply(Injector.scala:118) at play.api.inject.ContextClassLoaderInjector.withContext(Injector.scala:126) at play.api.inject.ContextClassLoaderInjector .instanceOf(Injector.scala:118) at play.api.inject.RoutesProvider $$ anonfun $ 2.apply(BuiltinModule.scala:104) play.api.inject.RoutesProvider $$ anonfun $ 2.apply(BuiltinModule.scala:104) scala.Option.fold(Option.scala:158) at play.api.inject.RoutesProvider.get $ lzycompute( BuiltinModule.scala:104) at play.api.inject.RoutesProvider.get(BuiltinModule.scala:100) at play.api.inject.RoutesProvider.get(BuiltinModule.scala:99) at com.google.inject。 (ProviderInternalFactory.java:81) com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java: 61) at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62) at com.goog le.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62) at com.google.inject.internal.ConstructorInjector.provision( ConstructorInjector.java:110) com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90) at com.google.inject.internal.ConstructorBindingImpl $ Factory.get(ConstructorBindingImpl.java:268) at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56) com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) (com.google.inject.internal.SingleParameterInjector)。 getAll(SingleParameterInjector.java:62) at com.google.inject.inte (コンストラクタインライン.java:90) at com.google.inject.internal.ConstructorBindingImpl $ Factory.get(ConstructorBindingImpl。)コンストラクタインジケータ.provision(コンストラクタインジェクタ.java:110) com.google.inject.internal.ConstructorInjector.construct Javaの:com.googleでcom.google.inject.internal.ProviderToInternalFactoryAdapter $ 1.callで268) com.google.inject.internal.InjectorImpl.callInContextで(ProviderToInternalFactoryAdapter.java:46) (InjectorImpl.java:1092) .inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) com.google.inject.internal.SingletonScope $ 1.get(SingletonScope.java:194) at com.google.inject.internal.InternalFactoryToProviderAdapter.get InternalFactoryToProviderAdapter.java:41)com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56) でcom.google.inject.internal.InjectorImpl $ 2 $ 1.call(InjectorImpl.java:1019) (com.google.inject)にあります。 internal.InjectorImpl.callInContext(InjectorImpl.java:1085) (com.google.inject.internal.InjectorImpl $ 2.get(InjectorImpl.java:1015) at com.google.inject.Internal.InjectorImpl.getInstance(InjectorImpl.java :1054) at play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:409) at play.api.inject.guice.GuiceInjector.instanceOf(GuiceInjectorBuilder.scala:404) at play.api.inject .ContextClassLoaderInjector $$ anonfun $ instanceOf $ 2.apply(Injector.scala:117) at play.api.inject.ContextClassLoaderInjector.withContext(Injector。スカラ:126) play.api.inject.ContextClassLoaderInjector.instanceOf(Injector.scala時:117) play.api.inject.guice.GuiceApplicationBuilder.buildで(GuiceApplicationBuilder.scala:137) play.api.injectました。 guice.GuiceApplicationLoader.load(GuiceApplicationLoader.scala:21) play.core.server.DevServerStart $$ anonfun $ mainDev $ 1 $$ anon $ 1 $$ anonfun $ 1.apply(DevServerStart.scala:174) at play.core。 server.DevServerStart $$ anonfun $ mainDev $ 1 $$ anon $ 1 $$ anonfun $ 1.apply(DevServerStart.scala:171) at play.utils.Threads $ .withContextClassLoader(Threads.scala:21) at play.core.server .DevServerStart $$ anonfun $ mainDev $ 1 $$ anon $ 1.reload(DevServerStart.scala:171) at play.core.server.DevServerStart $$ anonfun $ mainDev $ 1 $$ anon $ 1.get(DevServerStart.scala:124)play.core.server.AkkaHttpServer.play $ core $ server $ AkkaHttpServer $$ modelConversion(AkkaHttpServer.scala:183) at play.core.server.AkkaHttpServer.play $ core $ server $ AkkaHttpServer $$ handleRequest(AkkaHttpServer。スカラー:189) at play.core.server.AkkaHttpServer $$ anonfun $ 5.apply(AkkaHttpServer.scala:106) at play.core.server.AkkaHttpServer $$ anonfun $ 5.apply(AkkaHttpServer.scala:106) at akka.stream.impl.fusing.MapAsync $$ anon $ 23.onPush(Ops.scala:1172) at akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:499) at akka.stream.impl。 fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:462) at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:368) at akka.stream.impl.fus ing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:571)akka.stream.impl.fusing.GraphInterpreterShell $ AsyncInput.execute(ActorGraphInterpreter.scala:457)で akka.stream.impl.fusing.GraphInterpreterShell.processEventで (ActorGraphInterpreter。スケーラ:546) akka.stream.impl.fusing.ActorGraphInterpreter.akka $ストリーム$ impl $ fusing $ ActorGraphInterpreter $$ processEvent(ActorGraphInterpreter.scala:725) at akka.stream.impl.fusing.ActorGraphInterpreter $$ anonfun $ akka.actor.Actor $ class.aroundReceive(Actor.scala:514)で akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:650)で :$ 1.applyOrElse(740 ActorGraphInterpreter.scala)を受け取りますakka.actor.ActorCell.receiveMessage(ActorCell.scala:527) でkk.actor.ActorCell.invoke(ActorCell.scala:496) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257) at akka.dispatch.Mailbox.run(Mailbox.scala:224) at akka。 (ForkJoinTask.java:260) akka.dispatch.forkjoin.ForkJoinPool $ WorkQueue.runTask(ForkJoinPool.java:1339) java.lang.ClassNotFoundException:org.pac4jによって引き起こさakka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) でakka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) で。 play.scala.Security $ class at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassL oader.loadClass(ClassLoader.java:424)java.lang.ClassLoader.loadClass(ClassLoader.java:357)で ...セキュリティを使用91のより

クラスは、この

です
@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 
} 

何を変更する必要がありますか?

答えて

関連する問題