Scala Akka和类型安全配置版本问题
我尝试在Tomcat服务器上使用akka 2.1.0。但我在要求我将配置库也放在类路径上时出错 这不是问题所在。我将Typesafe的配置库1.0.0版(最新版本)放在lib文件夹中。然而,我总是得到错误Scala Akka和类型安全配置版本问题,scala,version,config,akka,Scala,Version,Config,Akka,我尝试在Tomcat服务器上使用akka 2.1.0。但我在要求我将配置库也放在类路径上时出错 这不是问题所在。我将Typesafe的配置库1.0.0版(最新版本)放在lib文件夹中。然而,我总是得到错误 8d31597e-1b6e-4be5-9773-4fb7e0591312akka.ConfigurationException: Akka JAR version [2.1.0] does not match the provided config version [2.0] at a
8d31597e-1b6e-4be5-9773-4fb7e0591312akka.ConfigurationException: Akka JAR version [2.1.0] does not match the provided config version [2.0]
at akka.actor.ActorSystem$Settings.<init>(ActorSystem.scala:172)
at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:465)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:111)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:93)
8d31597e-1b6e-4be5-9773-4FB7E0591312AKA.ConfigurationException:Akka JAR版本[2.1.0]与提供的配置版本[2.0]不匹配
在akka.actor.ActorSystem$设置中。(ActorSystem.scala:172)
在akka.actor.ActorSystemImpl.(ActorSystem.scala:465)
在akka.actor.ActorSystem$.apply上(ActorSystem.scala:111)
在akka.actor.ActorSystem$.apply(ActorSystem.scala:93)
lib文件夹中的jar文件是:
- akka-actor_2.10-2.1.0.jar
- config-1.0.0.jar
- scala-library-2.10.0.jar
这个问题是从哪里来的?它加载了一个配置文件,其中包含
akka.version=2.0
,但需要2.1.0
。
您可能在application.conf
中错误地定义了akka.version
。删除该设置。否则,您的classspath中就有一个akkaactor 2.0jar文件