Hi Rolf (and Alex),

Congratulations on cruisecontrol.rb 1.0!

The 'clonevm' attribute with which the build is now failing is an Ant 1.7 
thing. It will clone the vm in which Ant is run, which should pass all the 
system properties across.

Unfortunately it doesn't work by passing in a system property using -D on 
the command line. It _does_, however, work if you set the environment 
variable ANT_OPTS   to be    -Djava.awt.headless=true

I have tried this with Ant 1.7 and the ANT_OPTS on Windows, and it does 
indeed suppress all the Swing window popups which are not permitted. 
Fortunately the JBehave behaviours are already set up to run correctly in 
this situation!

Is there any chance I could please persuade you to upgrade to Ant 1.7 and 
modify the ANT_OPTS setting accordingly? This will also give more 
meaningful error messages to anyone else who tries to run Swing on your 
server.

Thanks,
Liz.

Elizabeth Keogh <[EMAIL PROTECTED]> wrote on 12/03/2007 11:11:25:
 
> Hi Rolf, 
> 
> From the logs, it looks as though JBehave is having trouble running 
> Swing. The build works just fine on my machine! This is interesting 
though: 
> 
> [run behaviours] 1) WindowGrabber should add new windows to and remove
> new windows from mini map: 
> [run behaviours] java.lang.InternalError: Can't connect to window 
> server - not enough permissions. 
> [run behaviours] at java.lang.ClassLoader$NativeLibrary.load(Native 
Method) 
> [run behaviours] at 
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) 
> [run behaviours] at 
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668) 
> [run behaviours] at java.lang.Runtime.loadLibrary0(Runtime.java:822) 
> 
> Has something changed on the server on your side? These behaviours 
> were running without failing the build before... 
> 
> It should be possible to run these in headless mode (will throw a 
> PendingException but won't fail the build).  It's not working at the 
> moment, though, so it's on my list. Thank you for letting us know! 
> 
> Cheers, 
> Liz. 
> 
> --
> Elizabeth Keogh
> [EMAIL PROTECTED]
> http://www.livejournal.com/users/sirenian
> 
> 
> Rolf Russell/UK/ThoughtWorks wrote on 10/03/2007 21:49:35:
> 
> > http://cruisecontrolrb.thoughtworks.com/builds/JBehave/701

Reply via email to