Akka and Typesafe configuration issues

I tried using akka 2.1.0 on the Tomcat server. But I got an error asking to add the config library to the classpath as well.

Well, that's not a problem. I have put in configafe libs library, version 1.0.0 (latest). 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)

      

Jar files in lib folder:

  • 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?

+3


source to share


1 answer


It loads a config file containing akka.version=2.0

but expects 2.1.0

. You may have misidentified akka.version

in yours application.conf

. Remove this setting. Otherwise, you have akka-actor 2.0 jar file in your class.



+5


source







All Articles