-
Notifications
You must be signed in to change notification settings - Fork 199
Description
Original Reporter: samd
Environment: Not Specified
Version: 1.0.0.M6
Migrated From: http://jira.grails.org/browse/GPMONGODB-69
If you define a shared common plugin in which you store all your mongo domain classes and then generate a war from an application dependent on this plugin it will fail to start.
It does work however if you use run-app
First deployment with Hibernate plugin installed I received this:
{code}
2011-06-23 19:17:01,984 [main] ERROR context.ContextLoader - Context initialization failed
org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: test.domain.security.SecRole; nested exception is org.hibernate.MappingException: Unknown entity: test.domain.security.SecRole
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:87)
{code}
After removing Hibernate and trying I receive this:
{code}
2011-06-23 19:56:48,268 [main] ERROR context.ContextLoader - Context initialization failed
org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: static test.domain.security.SecRole.findByAuthority() is applicable for argument types: (java.lang.String) values: [ROLE_USER]
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:87)
{code}