Problem creating a war file with grails-1.1beta2

4 views
Skip to first unread message

ellis.j...@gmail.com

unread,
Jan 28, 2009, 12:32:04 PM1/28/09
to Autobase
I have a really simple project that is little more than the default
skeleton created by 'grails create-app'. I installed the autobase
plugin (0.8 version) and (with no migrations yet) tried to create a
war using 'grails war' which produced the following exception. Am I
missing something? I didn't see anything mentioned about this in the
docs. Thanks in advance.

Jeff

jareds-MBP:hello 6th$ grails war
Welcome to Grails 1.1-beta2 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /Users/6th/tools/grails

Base Directory: /Users/6th/Documents/workspace-analytics/hello
Running script /Users/6th/tools/grails/scripts/War.groovy
Environment set to production
Warning, target causing name overwriting of name startLogging
Found events script in plugin autobase-0.8
[groovyc] Compiling 2 source files to /Users/6th/.grails/1.1-beta2/
projects/hello/classes
[mkdir] Created dir: /Users/6th/.grails/1.1-beta2/projects/hello/
staging
[copy] Copying 69 files to /Users/6th/.grails/1.1-beta2/projects/
hello/staging
[copy] Copied 19 empty directories to 2 empty directories under /
Users/6th/.grails/1.1-beta2/projects/hello/staging
[copy] Copying 18 files to /Users/6th/.grails/1.1-beta2/projects/
hello/staging/WEB-INF/grails-app
[copy] Copying 50 files to /Users/6th/.grails/1.1-beta2/projects/
hello/staging/WEB-INF/classes
[mkdir] Created dir: /Users/6th/.grails/1.1-beta2/projects/hello/
staging/WEB-INF/spring
[mkdir] Created dir: /Users/6th/.grails/1.1-beta2/projects/hello/
staging/WEB-INF/templates/scaffolding
[copy] Copying 60 files to /Users/6th/.grails/1.1-beta2/projects/
hello/staging/WEB-INF/lib
[copy] Copying 1 file to /Users/6th/.grails/1.1-beta2/projects/
hello/staging/WEB-INF
[delete] Deleting: /Users/6th/.grails/1.1-beta2/projects/hello/
resources/web.xml
[copy] Copying 7 files to /Users/6th/.grails/1.1-beta2/projects/
hello/staging/WEB-INF/lib
[propertyfile] Updating property file: /Users/6th/.grails/1.1-beta2/
projects/hello/staging/WEB-INF/classes/application.properties
[mkdir] Created dir: /Users/6th/.grails/1.1-beta2/projects/hello/
staging/WEB-INF/plugins
[copy] Copying 1 file to /Users/6th/.grails/1.1-beta2/projects/
hello/staging/WEB-INF/plugins
[delete] Deleting directory /Users/6th/.grails/1.1-beta2/projects/
hello/staging
Error executing script War: : Could not store WAR: BuildException: Due
to limitations with Grails, we can only package Autobase if you use
the default 'staging' directory location
gant.TargetExecutionException: : Could not store WAR: BuildException:
Due to limitations with Grails, we can only package Autobase if you
use the default 'staging' directory location
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:313)
at gant.Gant.dispatch(Gant.groovy:316)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:461)
at gant.Gant.processTargets(Gant.groovy:446)
Caused by: : Could not store WAR: BuildException: Due to limitations
with Grails, we can only package Autobase if you use the default
'staging' directory location
at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:142)
at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at _Events$_run_closure1.doCall(_Events.groovy:15)
at _GrailsEvents_groovy$_run_closure5_closure8.doCall
(_GrailsEvents_groovy:64)
at _GrailsEvents_groovy$_run_closure5.doCall(_GrailsEvents_groovy:61)
at _GrailsWar_groovy$_run_closure4.doCall(_GrailsWar_groovy:250)
at War$_run_closure1.doCall(War.groovy:38)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:306)
... 5 more

Robert Fischer

unread,
Jan 28, 2009, 12:35:31 PM1/28/09
to grails-...@googlegroups.com
You caught another 1.1beta2 bug. They apparently changed the createWar event...

I'll tackle this as soon as I get the bug Jesse mentioned taken care of.

~~ Robert.
--
~~ Robert Fischer.
Grails Trainining http://www.smokejumperit.com/grails_training.html
Smokejumper Consulting http://smokejumperit.com
Enfranchised Mind Blog http://enfranchisedmind.com/blog

Check out my book, "Grails Persistence with GORM and GSQL"!
http://www.smokejumperit.com/redirect.html
Reply all
Reply to author
Forward
0 new messages