jkuehn / gorm-mongodb

Grails GORM implementation for the MongoDB document oriented database
http://www.grails.org/plugin/mongodb-morphia
Apache License 2.0
21 stars 14 forks source link

Runtime Error #10

Closed handelcamilo closed 12 years ago

handelcamilo commented 12 years ago

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

Document d = new Document(params)

" 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. "

I'm configuring my Datasource.groovy like this:

mongodb { host = 'localhost' port = 27017 databaseName = 'clouddb' }

and my domain class have the annotation

@com.google.code.morphia.annotations.Entity

I'm using Grails 2.0.0.M2 and MongoDB 2.0

Thank you!

ps: How can I highlight codes?

jkuehn commented 12 years ago

Hi,

i cannot reproduce this error. The sample project generated in http://jkuehn.github.com/gorm-mongodb/guide/2.%20Quickstart.html uses the constructor with params, which works fine with and without hibernate. try a "grails clean" after removing the hibernate plugin.

If it still does not work, please provide a sample project to reproduce this errror