runtime exception related to Logger

28 views
Skip to first unread message

BEBEBE

unread,
Jul 24, 2016, 6:51:07 PM7/24/16
to ReactiveMongo - http://reactivemongo.org
Im getting a confusing runtime error:

(run-main-0) java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at reactivemongo.util.LazyLogger$.apply(LazyLogger.scala:27)
at reactivemongo.api.MongoDriver$.<init>(api.scala:974)
at reactivemongo.api.MongoDriver$.<clinit>(api.scala)
at crowdPopulate.crowdPopulateStream$.delayedEndpoint$crowdPopulate$crowdPopulateStream$1(crowdPopulateStream.scala:20)

I did not include slf4j, is there a transitive dependency on this module?


Cédric Chantepie

unread,
Jul 24, 2016, 8:29:36 PM7/24/16
to ReactiveMongo - http://reactivemongo.org
That means you need to provide by yourself a SLF4J binding. ReactiveMongo cannot do it, otherwise no one wanting to use a different binding would be able to. So just pick up the one you prefer (e.g. logback, slf4j-simple, ...).

BEBEBE

unread,
Jul 24, 2016, 9:47:52 PM7/24/16
to ReactiveMongo - http://reactivemongo.org
simple as that. thanks!
Reply all
Reply to author
Forward
0 new messages