I have in installed MongoDB on my server and wrote a very small Java program to connect to it:
Mongo mongo = new Mongo("localhost");
db = mongo.getDB("testdb"); // testdb doesn't exist, will be created
When I run the program, I get this error:
WARNING: jmx registration error: java.security.AccessControlException:
access denied (javax.management.MBeanTrustPermission register) continuing...
What could be causing this error? I am using the MongoDB database driver 2.7.3 supplied by MongoDB. I have changed the configuration file(s) for MongoDB since installing.