Note that there are some explanatory texts on larger screens.

plurals
  1. POGrails with MongoDB and Hibernate
    text
    copied!<p>I'd like to be able to use Hibernate and MongoDB in the same application, defining 2 datasources. I've added the following to BuildConfig:</p> <pre><code>compile ":mongodb:1.3.1" </code></pre> <p>When I try and do grails compile, I get the following:</p> <pre><code>| Installing zip mongodb-1.3.1.zip... | Installing zip mongodb-1.3.1.zip.... | Installing zip mongodb-1.3.1.zip..... | Installed plugin mongodb-1.3.1 | Installed plugin mongodb-1.3.1. | Installed plugin mongodb-1.3.1.. | Installed plugin mongodb-1.3.1... | Installed plugin mongodb-1.3.1.... | Installed plugin mongodb-1.3.1..... | Error Fatal error during compilation org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/Users/gdboling/.grails/ivy-cache/org.grails/grails-hibernate/jars/grails-hibernate-2.2.4.jar!/org/codehaus/groovy/grails/compiler/gorm/GormTransformer.class]; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/type/classreading/AnnotationMetadataReadingVisitor (Use --stacktrace to see the full trace) </code></pre> <p>The docs for the MongoDB plugin say this is possible, but I'm not sure why I'm getting this compile error simply after adding the MongoDB plugin to the BuildConfig.</p> <p>UPDATE:</p> <p>After doing some more googling, it looks like it <em>might</em> be a version conflict with what the mongodb plugin is trying to use vs what our version of Grails (2.2.4) is using. Not quite sure how to resolve or track this down though.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload