Troublesshooting Akka: ClassNotFoundException: akka.event.slf4j.Slf4jLoggingFilter

Last updated:

If, upon trying to run Akka examples from the website (I'm using v 2.4.6 but maybe it's the same thing for later versions) and you geet the following error message:

error java.lang.ClassNotFoundException: akka.event.slf4j.Slf4jLoggingFilter

Try adding "akka-slf4j" as a dependency in your build.sbt config file:

libraryDependencies ++= {
    "com.typesafe.akka" %% "akka-actor" % "2.4.6",
    "com.typesafe.akka" %% "akka-slf4j" % "2.4.6",
    //other dependencies here

Dialogue & Discussion