Akka and Typesafe config versions issue

回眸只為那壹抹淺笑 提交于 2019-12-10 18:08:26

问题


I tried to use akka 2.1.0 on a Tomcat server. But I got an error asking me to put the config library on the classpath too.

Well that's not the issue. I put the config library of Typesafe, version 1.0.0 (the latest) in the lib folder. However, I always get the error

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)

The jar files in the lib folder are :

  • akka-actor_2.10-2.1.0.jar
  • config-1.0.0.jar
  • scala-library-2.10.0.jar

Where does this problem come from ?


回答1:


It loads a configuration file containing akka.version=2.0 but is expecting 2.1.0. You might have mistakenly defined akka.version in your application.conf. Remove that setting. Otherwise you have a akka-actor 2.0 jar file in your classspath.



来源:https://stackoverflow.com/questions/14893109/akka-and-typesafe-config-versions-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!