the stacktrace is:
Caused by: java.lang.ClassCastException: org.grails.datastore.gorm.validation.constraints.UniqueConstraint cannot be cast to org.codehaus.groovy.grails.orm.hibernate.validation.UniqueConstraint
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1375)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:717)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1442)
... 79 more

I get the same error as Leonid with RC3. Interestingly, I do not get the error when running just integration tests, "grails test-app integration:", and all tests pass. When running the all test phases, "grails test-app", my integration tests fail when I try to save a domain object that has a unique constraint int it.

John Engelman
added a comment - 02/Dec/11 11:21 AM - edited I get the same error as Leonid with RC3. Interestingly, I do not get the error when running just integration tests, "grails test-app integration:", and all tests pass. When running the all test phases, "grails test-app", my integration tests fail when I try to save a domain object that has a unique constraint int it.

I added a simple integration test to the bug-report that I uploaded to this JIRA issue the other day, and was able to recreate the problems that are being reported w/RC3. New bug-report is attached. See the User domain class for more details.

Chris Fraser
added a comment - 02/Dec/11 12:30 PM - edited I added a simple integration test to the bug-report that I uploaded to this JIRA issue the other day, and was able to recreate the problems that are being reported w/RC3. New bug-report is attached. See the User domain class for more details.