views:

145

answers:

0

Hi,

I've tried in each and every way to test a grails-app using hudson. I've tried testing with maven, I've tried testing with the grails plugin and I've tried testing with a shell builder it seems that building via shell is the only thing that works..

Every time I get the same error:

org.hibernate.HibernateException: contains is not valid without active transaction

But If i go to a shell and type

grails test-app

everything runs fine. Does anyone have any idea on what's going on?


I'm using CentOS with Java 1.6, no slaves, just a simple hudson deploy over Tomcat6. I've tried both with maven and grails builder, both fail.


Edit: it seems that if I run both unit and integration tests on the same command (either with grails or with mvn) the integration tests fail always.