jkuehn/gorm-mongodb — Issue #10: Runtime Error
Author: handelcamilo
Created: 2011-10-14 22:19:57+00:00
State: open

Hi,
I'm getting this exception when try to create a simple object with

[code]
Document d = new Document(params)
[/code]

[code]
URI
/MongoDbCloudDoc/document/create
Class
org.springframework.beans.PropertyBatchUpdateException
Message
Failed properties: Property 'transactionManager' threw exception; nested exception is java.lang.IllegalStateException: Cannot locate GORM API implementation. You either don't have a GORM implementation installed (such as the Hibernate plugin) or you are running Grails code outside the context of a Grails application.
[/code]

I'm configuring my Datasource.groovy like this:

[code]
mongodb {
host = 'localhost'
port = 27017
databaseName = 'clouddb'
}
[/code]

and my domain class have the annotation
[code]
@com.google.code.morphia.annotations.Entity
[/code]

I'm using Grails 2.0.0.M2 and MongoDB 2.0

Thank you!