The jbossews.log segment :
Caused by: com.mongodb.CommandFailureException: { "serverUsed" : "127.xxx.xx3.xx0:27018" , "ok" : 0.0 , "errmsg" : "unauthorized"} at com.mongodb.CommandResult.getException(CommandResult.java:76) at com.mongodb.CommandResult.throwOnError(CommandResult.java:131)
The mongodb.log segment : I think its giving me above exception, because of "command denied: { listDatabases: 1 }" line.
Sun Apr 12 12:30:24.150 [conn1] authenticate db: admin { authenticate: 1, nonce: "#####", user: "admin", key: "*" }
Sun Apr 12 12:31:54.580 [conn3] authenticate db: mydb { authenticate: 1, user: "admin", nonce: "#######", key: "#######" }
Sun Apr 12 12:31:54.582 [conn3] command denied: { listDatabases: 1 }
Sun Apr 12 13:20:14.781 [conn4] authenticate db: admin { authenticate: 1, user: "admin", nonce: "######", key: "#######" }
Sun Apr 12 13:20:15.031 [conn4] command mydb.$cmd command: { $eval: CodeWScope( function (){ return db.getCollectionNames(); }, {}), args: {} } ntoreturn:1 keyUpdates:0 locks(micros) W:223980 reslen:109 224ms
Sun Apr 12 13:20:15.141 [conn5] authenticate db: admin { authenticate: 1, user: "admin", nonce: "######", key: "#######" }
What am I missing ? Any help would be highly appreciated.