Tuesday, December 22, 2009

Grails "pluginManager" error

STS has the cool feature where it dynamically recompiles your Grails application when it senses that you've made code changes. This can have an unexpected side effect. If you get an obscure message like the following:

Error creating bean with name 'pluginManager' defined in ServletContext...

Basically it seems related to a mismatch between the domain objects and the database schema. This is different from GORM and Object-Relational Impedance Mismatch... it is simply an unstable condition that might occur with the right combination of changes.

Unfortunately, I can only suggest saving and testing often, and if you see this message, try commenting out the "static hasMany" command in your domain object until it goes away.

No comments:

Post a Comment