Details
Description
Attached application throws following error when run after uninstalling the Hibernate plugin,
keith@keith-desktop:~/Development/temp/testappbug$ grails test-app
Welcome to Grails 1.2.0 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /home/keith/Development/Software/grails/grails
Base Directory: /home/keith/Development/temp/testappbug
Resolving dependencies...
Dependencies resolved in 1273ms.
Running script /home/keith/Development/Software/grails/grails/scripts/TestApp.groovy
Environment set to test
[mkdir] Created dir: /home/keith/Development/temp/testappbug/target/classes
[groovyc] Compiling 2 source files to /home/keith/Development/temp/testappbug/target/classes
[groovyc] Compiling 7 source files to /home/keith/Development/temp/testappbug/target/classes
[copy] Copied 3 empty directories to 1 empty directory under /home/keith/.grails/1.2.0/projects/testappbug/resources
[copy] Copied 2 empty directories to 2 empty directories under /home/keith/.grails/1.2.0/projects/testappbug/resources
[mkdir] Created dir: /home/keith/Development/temp/testappbug/target/test-reports/html
[mkdir] Created dir: /home/keith/Development/temp/testappbug/target/test-reports/plain
Starting unit test phase ...
[mkdir] Created dir: /home/keith/Development/temp/testappbug/target/test-classes/unit
Starting integration test phase ...
[copy] Copying 1 file to /home/keith/Development/temp/testappbug/target/test-classes/integration
[copy] Copying 1 file to /home/keith/Development/temp/testappbug/target/test-classes
[mkdir] Created dir: /home/keith/.grails/1.2.0/projects/testappbug/resources/grails-app/i18n
[native2ascii] Converting 13 files from /home/keith/Development/temp/testappbug/grails-app/i18n to /home/keith/.grails/1.2.0/projects/testappbug/resources/grails-app/i18n
[copy] Copying 1 file to /home/keith/Development/temp/testappbug/target/classes
[groovyc] Compiling 1 source file to /home/keith/Development/temp/testappbug/target/test-classes/integration
[junitreport] Processing /home/keith/Development/temp/testappbug/target/test-reports/TESTS-TestSuites.xml to /tmp/null554112014
[junitreport] Loading stylesheet jar:file:/home/keith/.ivy2/cache/org.apache.ant/ant-junit/jars/ant-junit-1.7.1.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 1483ms
[junitreport] Deleting: /tmp/null554112014
Tests PASSED - view reports in target/test-reports
Error executing script TestApp: java.lang.RuntimeException: Cannot run test in transaction as there is no transactionManager defined
gant.TargetExecutionException: java.lang.RuntimeException: Cannot run test in transaction as there is no transactionManager defined
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:331)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy:334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:495)
at gant.Gant.processTargets(Gant.groovy:480)
Caused by: java.lang.RuntimeException: Cannot run test in transaction as there is no transactionManager defined
at _GrailsTest_groovy$_run_closure4.doCall(_GrailsTest_groovy:252)
at _GrailsTest_groovy$_run_closure4.call(_GrailsTest_groovy)
at _GrailsTest_groovy$_run_closure2.doCall(_GrailsTest_groovy:221)
at _GrailsTest_groovy$_run_closure1_closure21.doCall(_GrailsTest_groovy:181)
at _GrailsTest_groovy$_run_closure1.doCall(_GrailsTest_groovy:168)
at TestApp$_run_closure1.doCall(TestApp:102)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
... 10 more
Error executing script TestApp: java.lang.RuntimeException: Cannot run test in transaction as there is no transactionManager defined
Application context shutting down...
Application context shutdown.
Is there a plan to put this into 1.2.1 release?
I encountered the same issue.
Without the capability to run integration test, I don't see many user would be enthusiastic about upgrading to grails 1.2.