Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

421
Vistas
CompilerException java.lang.ClassNotFoundException: org.bson.types while trying to connect to mongo with Monger

Trying to connect to Mongo using Monger and I get the following error

CompilerException java.lang.ClassNotFoundException: org.bson.types

I have added the dependency [com.novemberain/monger "3.1.0"] in project.clj and did a lein re-install and is trying to import bson.types as :import [org.bson.types ObjectId].

The monger dependency is reflecting in my auto generated pom.xml file as

<dependency>
<groupId>com.novemberain</groupId>
<artifactId>monger</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>

Am I missing any dependency or what am I doing wrong ? .

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

Looks like monger depends on org.mongodb:mongodb-driver, which does not include the bson parts of the mongo driver. So you'd also need to include the bson dep explicitly, which is org.mongodb:bson.

Looks like they also publish a org.mongodb:mongodb-java-driver uberjar that includes the driver, bson, and other stuff in a single dep. If you added that you'd get everything (but you should probably exclude those deps pulled in by monger to avoid conflicts).

over 4 years ago · Santiago Trujillo Denunciar

0

Monger Jar file dependency need to be added at your jar location. This help me resolved the issue. Hope it helps you too.

Download the Monger Jar file from the below link

https://mvnrepository.com/artifact/org.mongodb/mongo-java-driver/2.10.1
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda