Skip to content

GPMONGODB-69: Unable to have domain classes in shared plugin when deploying a war to Tomcat #503

@graemerocher

Description

@graemerocher

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}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions