Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails build war file fails with no indication as to why

Tags:

grails

Trying to move from run-app(which works fine, no problems at all) to running on Tomcat. However when we run grails test war the Building War File... step fails.

Here is the console output, I'm not sure how to force it to tell me the problem with the build.

Loading Grails 2.2.0
| Configuring classpath.
| Environment set to test.....
| Packaging Grails application.....
| Compiling 1 source files.....
| Compiling 33 GSP files for package [infogriz]..
| Compiling 5 GSP files for package [debug].
| Compiling 4 GSP files for package [databaseMigration]..
| Building WAR file.....

And the popup window opens up with 'grails test war' has encountered a problem. Problem executing: test war. Real helpful.

The "Details" Button gives this as more detail.

Problem executing: test war --stacktrace --verbose
Command terminated with an error code (see details for output)
------System.out:-----------
Loading Grails 2.2.0
| Configuring classpath.
| Environment set to test.....
| Packaging Grails application.....
| Compiling 2 source files.....
| Compiling 33 GSP files for package [infogriz]..
| Compiling 5 GSP files for package [debug].
| Compiling 4 GSP files for package [databaseMigration]..
| Building WAR file.....
------System.err:-----------

Any ideas? I tried adding --stacktrace but it still doesn't tell me why it's failing.

Edit.

Running from the command line thanks to Ian's comment. The new error is:

`| Error Error executing script War: : c:\Users\me\git\infogriz\grails -app\migrations does not exist.

Guess I'll be building that file after lunch?

like image 950
idonaldson Avatar asked Mar 26 '13 16:03

idonaldson


1 Answers

I had that error once and I fixed it by creating the migrations folder at the expected location...

You probably updated to a newer version of Grails recently or you used a Grails version which was newer than the configured Grails version in the project properties.

like image 148
rimero Avatar answered Sep 18 '22 21:09

rimero