Discussion:
ANN: GORM for MongoDB 3.0
Graeme Rocher
2014-04-25 07:43:40 UTC
Permalink
Hi all,

GORM for MongoDB 3.0 has been released with support for MongoDB 2.6
features, including the new GeoJSON types and full text search. For
further information see:

* Release notes:
http://grails.github.io/grails-data-mapping/mongodb/manual/guide/1.%20Introduction.html#1.2%20Release%20Notes
* JIRA change log:
http://jira.grails.org/secure/ReleaseNote.jspa?projectId=10174&version=13607

Enjoy,
--
Graeme Rocher
Grails Project Lead
SpringSource

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
George Smith
2014-04-25 14:13:40 UTC
Permalink
Hi Graeme,

I am trying to use the Grails MongoDb plugin. I have upgraded to the 3.0.0
version of the plugin. I am using Grails version 2.3.7.

I have a mongodb instance running, and can connect to it just fine with the
mongo shell.

If I run mongo --auth

And in my Grails app set the username and password using the adim id which
has "root" role, I'm getting an error which says:

"serverUsed" : "<myserver>" , "ok" : 0.0 , "errmsg" : "not authorized on
<mydbname> to execute command { createIndexes: \"application\", indexes: [ {
name: \"name_1\", ns: \"<mydbname>.application\", key: { name: 1 } } ] }" ,
"code" : 13}

Where application is a domain object in my Grails app.

I have tried adding users with many different roles to the db, "dbOwner",
"readWrite","dbAdmin" etc. But nothing seems to work.

If I run mongod without the --auth, everything works fine.

Any ideas? By the way. It had basically the same problem with the 2.0.1
version of the plugin.

Also. My mongodb version is 2.6



--
View this message in context: http://grails.1312388.n4.nabble.com/ANN-GORM-for-MongoDB-3-0-tp4656307p4656333.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Shashank Agrawal
2014-04-25 14:26:14 UTC
Permalink
Make sure you have added a user on the database and authenticated the user.
For example:

use xyz
db.addUser("<username>", "<password>")
db.auth("<username>", "<password>")

Thank You,

Shashank
Post by George Smith
Hi Graeme,
I am trying to use the Grails MongoDb plugin. I have upgraded to the 3.0.0
version of the plugin. I am using Grails version 2.3.7.
I have a mongodb instance running, and can connect to it just fine with the
mongo shell.
If I run mongo --auth
And in my Grails app set the username and password using the adim id which
"serverUsed" : "<myserver>" , "ok" : 0.0 , "errmsg" : "not authorized on
<mydbname> to execute command { createIndexes: \"application\", indexes: [ {
name: \"name_1\", ns: \"<mydbname>.application\", key: { name: 1 } } ] }" ,
"code" : 13}
Where application is a domain object in my Grails app.
I have tried adding users with many different roles to the db, "dbOwner",
"readWrite","dbAdmin" etc. But nothing seems to work.
If I run mongod without the --auth, everything works fine.
Any ideas? By the way. It had basically the same problem with the 2.0.1
version of the plugin.
Also. My mongodb version is 2.6
--
http://grails.1312388.n4.nabble.com/ANN-GORM-for-MongoDB-3-0-tp4656307p4656333.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
George Smith
2014-04-26 19:12:05 UTC
Permalink
Yes. I've done that, but I still get an exception. It's a little different
with version 3.0 of the plugin. It's now:

not authorized on <mydb> to execute command { createIndexes:
\"application\", indexes: [ { name: \"name_1\", ns: \"<mydb>.application\",
key: { name: 1 } } ] }" , "code" : 13

The user that I am using in the DataSource.groovy is in fact set up and
authorized in the mongo db. I can log on and authenticate using the mongo
shell.

Any other ideas?



--
View this message in context: http://grails.1312388.n4.nabble.com/ANN-GORM-for-MongoDB-3-0-tp4656307p4656364.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
George Smith
2014-04-28 18:09:49 UTC
Permalink
So. I tried something else today. This is about as simple as I can get the
app. It runs fine without the --auth flag for mongod, but with the --auth it
fails.

I am at a complete loss as to why. Here is my situation:

I have a local copy of MongoDb 2.6 installed on my machine. I added two
users, as you can see by the mongo shell output:

switched to db admin
show users
{
"_id" : "admin.admin",
"user" : "admin",
"db" : "admin",
"roles" : [
{
"role" : "root",
"db" : "admin"
}
]
}
{
"_id" : "admin.persondb",
"user" : "persondb",
"db" : "admin",
"roles" : [
{
"role" : "dbOwner",
"db" : "person"
},
{
"role" : "readWrite",
"db" : "person"
}
]
}
use person
switched to db person
show users
{
"_id" : "person.persondb",
"user" : "persondb",
"db" : "person",
"roles" : [
{
"role" : "dbOwner",
"db" : "person"
},
{
"role" : "readWrite",
"db" : "person"
}
]
}

And this is the entirety of my DataSource.groovy:
// environment specific settings
environments {
development {
grails {
mongo {
host = 'localhost'
port = 27017
databaseName = "person"
username: "persondb"
password: "persondb"
}
}
}
}

I created a simple domain class:

package com.bnsf

import org.bson.types.ObjectId

class Person {

ObjectId id
String firstName
String lastName

static mapping = {
lastName index:true
sort lastName:"asc"
}

static constraints = {
}
}

And generated a controller for the class, since it looks like the
scaffolding doesn't work with mongo. No problem..

BuildConfig.groovy plugins dependencies:

plugins {
build ":tomcat:7.0.52.1"
compile ":scaffolding:2.0.2"
compile ":mongodb:3.0.0"
compile ":twitter-bootstrap:3.1.1"
compile ":jquery-ui:1.10.3"
compile ":codenarc:0.19"

test ":code-coverage:1.2.7"

// plugins needed at runtime but not for compilation
runtime ":jquery:1.11.0.2"
runtime ":resources:1.2.1"
}

That's it.

When I run run-app I get the following error:

|Running Grails application
Error |
2014-04-28 12:53:36,462 [localhost-startStop-1] ERROR
context.GrailsContextLoader - Error initializing the application: Error
creating bean with name 'mongoTransactionManager': Cannot resolve reference
to bean 'mongoDatastore' while setting bean property 'datastore'; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'mongoDatastore': FactoryBean threw exception on
object creation; nested exception is
org.springframework.data.mongodb.UncategorizedMongoDbException: {
"serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
on person to execute command { createIndexes: \"person\", indexes: [ { name:
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}; nested exception is com.mongodb.CommandFailureException: {
"serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
on person to execute command { createIndexes: \"person\", indexes: [ { name:
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}
Message: Error creating bean with name 'mongoTransactionManager': Cannot
resolve reference to bean 'mongoDatastore' while setting bean property
'datastore'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'mongoDatastore': FactoryBean threw exception on object creation;
nested exception is
org.springframework.data.mongodb.UncategorizedMongoDbException: {
"serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
on person to execute command { createIndexes: \"person\", indexes: [ { name:
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}; nested exception is com.mongodb.CommandFailureException: {
"serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
on person to execute command { createIndexes: \"person\", indexes: [ { name:
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}
Line | Method
->> 262 | run in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 744 | run in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name
'mongoDatastore': FactoryBean threw exception on object creation; nested
exception is org.springframework.data.mongodb.UncategorizedMongoDbException:
{ "serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
on person to execute command { createIndexes: \"person\", indexes: [ { name:
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}; nested exception is com.mongodb.CommandFailureException: {
"serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
on person to execute command { createIndexes: \"person\", indexes: [ { name:
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}
->> 262 | run in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 744 | run in java.lang.Thread
Caused by UncategorizedMongoDbException: { "serverUsed" : "localhost:27017"
, "ok" : 0.0 , "errmsg" : "not authorized on person to execute command {
createIndexes: \"person\", indexes: [ { name: \"lastName_1\", ns:
\"person.person\", key: { lastName: 1 } } ] }" , "code" : 13}; nested
exception is com.mongodb.CommandFailureException: { "serverUsed" :
"localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized on person to
execute command { createIndexes: \"person\", indexes: [ { name:
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}
->> 285 | initializeIndices in
org.grails.datastore.mapping.mongo.MongoDatastore
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 276 | createMongoTemplate in ''
| 221 | afterPropertiesSet in ''
| 54 | getObject in
org.grails.datastore.gorm.mongo.bean.factory.MongoDatastoreFactoryBean
| 262 | run . . . in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 744 | run in java.lang.Thread
Caused by CommandFailureException: { "serverUsed" : "localhost:27017" , "ok"
: 0.0 , "errmsg" : "not authorized on person to execute command {
createIndexes: \"person\", indexes: [ { name: \"lastName_1\", ns:
\"person.person\", key: { lastName: 1 } } ] }" , "code" : 13}
->> 76 | getException in com.mongodb.CommandResult
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 131 | throwOnError in ''
| 347 | createIndex in com.mongodb.DBCollectionImpl
| 564 | createIndex in com.mongodb.DBCollection
| 663 | ensureIndex in ''
| 603 | ensureIndex in ''
| 341 | doInDB . in org.grails.datastore.mapping.mongo.MongoDatastore$6
| 285 | initializeIndices in
org.grails.datastore.mapping.mongo.MongoDatastore
| 276 | createMongoTemplate in ''
| 221 | afterPropertiesSet in ''
| 54 | getObject in
org.grails.datastore.gorm.mongo.bean.factory.MongoDatastoreFactoryBean
| 262 | run in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 744 | run . . . in java.lang.Thread
Error |
Forked Grails VM exited with error





--
View this message in context: http://grails.1312388.n4.nabble.com/ANN-GORM-for-MongoDB-3-0-tp4656307p4656407.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Graeme Rocher
2014-04-29 06:34:18 UTC
Permalink
See http://docs.mongodb.org/ecosystem/tutorial/authenticate-with-java-driver/

In order to authenticate you need to use an instance of MongoClient.
You can supply your own instance of mongo to the plugin simply by
defining a 'mongo' bean in resources.groovy:

Untested code:

import com.mongodb.MongoClient;
import com.mongodb.MongoCredential;
import com.mongodb.ServerAddress;

beans = {

MongoCredential credential =
MongoCredential.createMongoCRCredential("user1", "test",
"password1".toCharArray());

mongo(MongoClient, new ServerAddress(...), Arrays.asList(credential))
}
Post by George Smith
So. I tried something else today. This is about as simple as I can get the
app. It runs fine without the --auth flag for mongod, but with the --auth it
fails.
I have a local copy of MongoDb 2.6 installed on my machine. I added two
switched to db admin
show users
{
"_id" : "admin.admin",
"user" : "admin",
"db" : "admin",
"roles" : [
{
"role" : "root",
"db" : "admin"
}
]
}
{
"_id" : "admin.persondb",
"user" : "persondb",
"db" : "admin",
"roles" : [
{
"role" : "dbOwner",
"db" : "person"
},
{
"role" : "readWrite",
"db" : "person"
}
]
}
use person
switched to db person
show users
{
"_id" : "person.persondb",
"user" : "persondb",
"db" : "person",
"roles" : [
{
"role" : "dbOwner",
"db" : "person"
},
{
"role" : "readWrite",
"db" : "person"
}
]
}
// environment specific settings
environments {
development {
grails {
mongo {
host = 'localhost'
port = 27017
databaseName = "person"
username: "persondb"
password: "persondb"
}
}
}
}
package com.bnsf
import org.bson.types.ObjectId
class Person {
ObjectId id
String firstName
String lastName
static mapping = {
lastName index:true
sort lastName:"asc"
}
static constraints = {
}
}
And generated a controller for the class, since it looks like the
scaffolding doesn't work with mongo. No problem..
plugins {
build ":tomcat:7.0.52.1"
compile ":scaffolding:2.0.2"
compile ":mongodb:3.0.0"
compile ":twitter-bootstrap:3.1.1"
compile ":jquery-ui:1.10.3"
compile ":codenarc:0.19"
test ":code-coverage:1.2.7"
// plugins needed at runtime but not for compilation
runtime ":jquery:1.11.0.2"
runtime ":resources:1.2.1"
}
That's it.
|Running Grails application
Error |
2014-04-28 12:53:36,462 [localhost-startStop-1] ERROR
context.GrailsContextLoader - Error initializing the application: Error
creating bean with name 'mongoTransactionManager': Cannot resolve reference
to bean 'mongoDatastore' while setting bean property 'datastore'; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'mongoDatastore': FactoryBean threw exception on
object creation; nested exception is
org.springframework.data.mongodb.UncategorizedMongoDbException: {
"serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}; nested exception is com.mongodb.CommandFailureException: {
"serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}
Message: Error creating bean with name 'mongoTransactionManager': Cannot
resolve reference to bean 'mongoDatastore' while setting bean property
'datastore'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'mongoDatastore': FactoryBean threw exception on object creation;
nested exception is
org.springframework.data.mongodb.UncategorizedMongoDbException: {
"serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}; nested exception is com.mongodb.CommandFailureException: {
"serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}
Line | Method
->> 262 | run in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 744 | run in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name
'mongoDatastore': FactoryBean threw exception on object creation; nested
{ "serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}; nested exception is com.mongodb.CommandFailureException: {
"serverUsed" : "localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}
->> 262 | run in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 744 | run in java.lang.Thread
Caused by UncategorizedMongoDbException: { "serverUsed" : "localhost:27017"
, "ok" : 0.0 , "errmsg" : "not authorized on person to execute command {
\"person.person\", key: { lastName: 1 } } ] }" , "code" : 13}; nested
"localhost:27017" , "ok" : 0.0 , "errmsg" : "not authorized on person to
\"lastName_1\", ns: \"person.person\", key: { lastName: 1 } } ] }" , "code"
: 13}
->> 285 | initializeIndices in
org.grails.datastore.mapping.mongo.MongoDatastore
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 276 | createMongoTemplate in ''
| 221 | afterPropertiesSet in ''
| 54 | getObject in
org.grails.datastore.gorm.mongo.bean.factory.MongoDatastoreFactoryBean
| 262 | run . . . in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 744 | run in java.lang.Thread
Caused by CommandFailureException: { "serverUsed" : "localhost:27017" , "ok"
: 0.0 , "errmsg" : "not authorized on person to execute command {
\"person.person\", key: { lastName: 1 } } ] }" , "code" : 13}
->> 76 | getException in com.mongodb.CommandResult
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 131 | throwOnError in ''
| 347 | createIndex in com.mongodb.DBCollectionImpl
| 564 | createIndex in com.mongodb.DBCollection
| 663 | ensureIndex in ''
| 603 | ensureIndex in ''
| 341 | doInDB . in org.grails.datastore.mapping.mongo.MongoDatastore$6
| 285 | initializeIndices in
org.grails.datastore.mapping.mongo.MongoDatastore
| 276 | createMongoTemplate in ''
| 221 | afterPropertiesSet in ''
| 54 | getObject in
org.grails.datastore.gorm.mongo.bean.factory.MongoDatastoreFactoryBean
| 262 | run in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 744 | run . . . in java.lang.Thread
Error |
Forked Grails VM exited with error
--
View this message in context: http://grails.1312388.n4.nabble.com/ANN-GORM-for-MongoDB-3-0-tp4656307p4656407.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Graeme Rocher
Grails Project Lead
SpringSource

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
lionkng123
2014-05-13 09:04:36 UTC
Permalink
Post by George Smith
// environment specific settings
environments {
development {
grails {
mongo {
host = 'localhost'
port = 27017
databaseName = "person"
username: "persondb"
password: "persondb"
}
}
}
}
It seems, it would be *username = "persondb"* and *password = "persondb"*.
Colon (*":"*) is not a valid delimiter here.

Thanks.



--
View this message in context: http://grails.1312388.n4.nabble.com/ANN-GORM-for-MongoDB-3-0-tp4656307p4656843.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Vinny
2014-05-14 15:59:00 UTC
Permalink
Will the current MongoDB plugin work on 2.2.x versions ? If not, what was
the version that worked for 2.2.3 ?
Side note: Are these the kinds of questions that will fit into the
StackOverflow Q&A format or should things like this be posted to google
group?

--
biz: http://www.linkedin.com/in/vincentstoessel/
personal: http://xaymaca.tumblr.com/
Post by lionkng123
Post by George Smith
// environment specific settings
environments {
development {
grails {
mongo {
host = 'localhost'
port = 27017
databaseName = "person"
username: "persondb"
password: "persondb"
}
}
}
}
It seems, it would be *username = "persondb"* and *password = "persondb"*.
Colon (*":"*) is not a valid delimiter here.
Thanks.
--
http://grails.1312388.n4.nabble.com/ANN-GORM-for-MongoDB-3-0-tp4656307p4656843.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Graeme Rocher
2014-05-14 21:35:25 UTC
Permalink
Stack overflow
Post by Vinny
Will the current MongoDB plugin work on 2.2.x versions ? If not, what was
the version that worked for 2.2.3 ?
Side note: Are these the kinds of questions that will fit into the
StackOverflow Q&A format or should things like this be posted to google
group?
--
biz: http://www.linkedin.com/in/vincentstoessel/
personal: http://xaymaca.tumblr.com/
Post by lionkng123
Post by George Smith
// environment specific settings
environments {
development {
grails {
mongo {
host = 'localhost'
port = 27017
databaseName = "person"
username: "persondb"
password: "persondb"
}
}
}
}
It seems, it would be *username = "persondb"* and *password = "persondb"*.
Colon (*":"*) is not a valid delimiter here.
Thanks.
--
http://grails.1312388.n4.nabble.com/ANN-GORM-for-MongoDB-3-0-tp4656307p4656843.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Graeme Rocher
Grails Project Lead
SpringSource

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Vinny
2014-05-15 15:24:25 UTC
Permalink
Done :)
http://stackoverflow.com/questions/23660243/best-version-of-the-mongodb-gorm-plugin-for-grails-2-2-x

--
biz: http://www.linkedin.com/in/vincentstoessel/
personal: http://xaymaca.tumblr.com/
Post by Graeme Rocher
Stack overflow
Post by Vinny
Will the current MongoDB plugin work on 2.2.x versions ? If not, what
was
Post by Vinny
the version that worked for 2.2.3 ?
Side note: Are these the kinds of questions that will fit into the
StackOverflow Q&A format or should things like this be posted to google
group?
--
biz: http://www.linkedin.com/in/vincentstoessel/
personal: http://xaymaca.tumblr.com/
Post by lionkng123
Post by George Smith
// environment specific settings
environments {
development {
grails {
mongo {
host = 'localhost'
port = 27017
databaseName = "person"
username: "persondb"
password: "persondb"
}
}
}
}
It seems, it would be *username = "persondb"* and *password =
"persondb"*.
Post by Vinny
Post by lionkng123
Colon (*":"*) is not a valid delimiter here.
Thanks.
--
http://grails.1312388.n4.nabble.com/ANN-GORM-for-MongoDB-3-0-tp4656307p4656843.html
Post by Vinny
Post by lionkng123
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Graeme Rocher
Grails Project Lead
SpringSource
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Loading...