Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Grails-Webtest 2.0
-
Component/s: None
-
Labels:None
-
Environment:Grails 1.2.0.RC2, Plugin webtest 1.2.3
Description
When I run 'grails run-webtest' I get following Exception:
D:\testapp>grails run-webtest
Welcome to Grails 1.2.0.RC2 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\grails-1.2.0.RC2
Base Directory: D:\testapp
Resolving dependencies...
Dependencies resolved in 688ms.
Running script C:\Dokumente und Einstellungen\ah\.grails\1.2.0.RC2\projects\testapp\plugins\webtest-1.2.3\scripts\RunWebtest.groovy
Environment set to test
[groovyc] Compiling 1 source file to D:\testapp\target\classes
Running WebTest ...
#############################################################################################
DEPRECATION WARNING: run-webtest is now deprecated, please use test-app -functional instead.
Please see the release notes at refactor.com.au regarding run-webtest functionality not
supported by test-app
#############################################################################################
Running HTTP Server on port 8080 ...
[delete] Deleting directory C:\Dokumente und Einstellungen\ah\.grails\1.2.0.RC2\projects\testapp\tomcat
Running Grails application..
Server running. Browse to http://localhost:8080/testapp
WebTest Plugin Home: C:/Dokumente und Einstellungen/ah/.grails/1.2.0.RC2/projects/testapp/plugins/webtest-1.2.3 ...
WebTest Home: C:/Dokumente und Einstellungen/ah/.grails/1.2.0.RC2/projects/testapp/plugins/webtest-1.2.3/home ...
Application Base Dir: D:\testapp ...
call:
[java] Letting agent QTJA do the transformation
[java] Letting agent QTJA do the transformation
[java] Letting agent QTJA do the transformation
[java] D:\testapp\test\webtest\conf\webtest.properties added.
[java] Caught: java.lang.NoClassDefFoundError: org.apache.ivy.util.Message
[java] at grails.util.BuildSettings.class$(BuildSettings.groovy)
[java] at grails.util.BuildSettings.$get$$class$org$apache$ivy$util$Message(BuildSettings.groovy)
[java] at grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:685)
[java] at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:656)
[java] at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:646)
[java] at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:634)
[java] at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:612)
[java] at grails.util.WebTest.loadBuildSettings(WebTest.groovy:112)
[java] at grails.util.WebTest.this$5$loadBuildSettings(WebTest.groovy)
[java] at grails.util.WebTest.initProps(WebTest.groovy:77)
[java] at grails.util.WebTest.prepare(WebTest.groovy:127)
[java] at grails.util.WebTest.runTests(WebTest.groovy:55)
[java] at TestSuite.main(TestSuite.groovy:8)
[java] Java Result: 1
Result file (test\reports\webtest\WebTestOverview.xml) not found!
WebTest complete
Server stopped
Build failed!!
_______
Attached you will find a simple grails application where you can reproduce this bug.
This grails application was built by following steps:
- grails create-app testapp
- cd testapp
- grails create-domain-class person
- added 'String name' and 'Integer age' to testapp\grails-app\domain\Person.groovy
- grails generate-all person
- grails install-plugin webtest
- grails create-webtest person
- grails run-webtest
run-webtest will be removed in the next version (2.0) in favour of the new test-app -functional support.
I'll close this once 2.0 is released (should be within a day or two)