HI Srikanth,
at my workplace we are using Mongo Document DB so would you please give me steps how you solved this issue, i am facing problems to connect with Mongo Document Db.
I am using groovy script to connect to Mongo DB and i am using below lines of code and it is giving me error as follows
import com.gmongo.GMongo
def mongo = new GMongo('HOST:PORT')
def db = mongo.getDB('DB Name')
log.info db.Permissions.findOne()
Error i am getting is as follows
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script3.groovy: 1: unable to resolve class com.gmongo.GMongo @ line 1, column 1. import com.gmongo.GMongo ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class com.gmongo.GMongo @ line 1, column 1. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:149)
Your reply will be appreciated
Thanks
Anusha