4
votes

I am facing problem in executing a the test cases for grails application. I'm using grails 2.3.7 and jdk1.7.0_25. when I am trying to perform the test-app command to test my grails application, I am getting the bellow error.

|Loading Grails 2.3.7 |Configuring classpath . |Environment set to test ...................................... |Running without daemon... Error | Error running forked test-app: org/codehaus/gant/GantBinding (Use --stacktrace to see the full trace) Error | Forked Grails VM exited with error

any guess, why this type of error comes? Please check in this regard and suggest any help.

1
decrease your log level - dgregory
try running grails test-app --stacktrace (as your error message suggests) to get a bit more information. The output of that command is necessary to provide help on this! It would also be helpful if you could provide some information on what you were trying to achieve, what you've added which you think made the code fail (snippets), etc. - spikeheap
Also, try a more up to date version of Java 7 - tim_yates
I have excactly the same error message using java 1.7.0_51 - August
I have the same problem. - SilentNot

1 Answers

1
votes

It looks like this may be an issue with a missing tools.jar file, according to this bug. Seems like it may have been fixed in a later version of Grails, so if you can't add the jar, perhaps upgrading may help.