michaelklishin/monger — Issue #5: Query DSL - ClassNotFound ReadPreference
Author: tobyhede
Created: 2012-01-28 10:06:34+00:00
State: open

Hello again.

Attempting to get running with the Query DSL and seeing a class not found exception

java.lang.RuntimeException: java.lang.ClassNotFoundException: com.mongodb.ReadPreference

The stack trace suggests it is something internal to monger - "monger.query$eval509.invoke(query.clj:1)"

Caused by: java.lang.ClassNotFoundException: com.mongodb.ReadPreference
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at monger.query$eval509$loading__4505__auto____510.invoke(query.clj:1)
at monger.query$eval509.invoke(query.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6465)
... 73 more