top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

When using MongoDriver for jdbc connection then classnotfound exception throw?

+1 vote
290 views

When using MongoDriver for jdbc connection then classnotfound exception throw.
Used mongo-java-driver in pom. Please help?

posted Jan 18, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

If you are using maven, check your $M2_HOME directory to make sure you have mongo-java-driver there. Alternatively, check your java classpath for the driver.

Please Refer for examples and guides, which may be useful as well.

answer Feb 3, 2016 by Manikandan J
Similar Questions
+1 vote

I am in the process of migrating a replica set from a data center to AWS, but when I checked the settings, I noticed that the Sharding is not enabled, yet they are using 3 MongoS / Routers and 3 MongoC / Config servers - So since Sharding is not used in the current system, would it be safe to migrate the replica sets and not use MonogoS nor MongoC ? Can the users connect directly to Mongo database replica set without using MongoS ?
Or should I use at least 1 MongoS and 1 MongoC config server ?

...