> you're saying the work-around never applies for ImageBundles? I > didn't get that from reading this section. I think so. Especially because of this sentence in the faq: --- Even if you are not using the ImageBundle explicitly in your client code, ...
I think it's understandable that it always needs the graphics lib's to modify the images, such that it always needs them when it encounter images. BTW: In my test environment I do proxy my ClienbBundle classes (I don't use GWTTestCase, I hate it ;) ). - Ed On Dec 6, 2:47 pm, laredotornado <laredotorn...@zipmail.com> wrote: > I understand that it says "if you're using any widgets that use > ImageBundle in their underlying implementations, the GWT compiler will > search for the DISPLAY environment variable and try to connect to an > X11 Graphics Window" but then it lists the work-around after, but > you're saying the work-around never applies for ImageBundles? I > didn't get that from reading this section. > > What is the alternative? - Dave > > On Dec 6, 3:19 am, Ed <post2edb...@gmail.com> wrote: > > > > > > > > > I understand from the GWT FAQ that this isnt' possible with > > ImageBundles. > > See:http://code.google.com/webtoolkit/doc/1.6/FAQ_Troubleshooting.html > > > On Dec 5, 11:12 pm, laredotornado <laredotorn...@zipmail.com> wrote: > > > > Hi, > > > > I'm using Maven 3.0.3, GWT 2.4 and the Bamboo integration suite. How > > > do I set up my GWT tests to run in headless mode using Maven and GWT? > > > I have tried setting both these environment variables ... > > > > JAVA_OPTS="-Djava.awt.headless=true" > > > MAVEN_OPTS="-Djava.awt.headless=true" > > > > but to no avail. I still get the errors below ... > > > > Caused by: java.lang.RuntimeException: Deferred binding failed for > > > 'com.myco.clearing.product.client.resource.Resources$Images' (did you > > > forget to inherit a required module?) > > > at > > > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: > > > 53) > > > at com.google.gwt.core.client.GWT.create(GWT.java:97) > > > at > > > com.myco.clearing.product.client.resource.Resources.<clinit>(Resources.java > > > : > > > 38) > > > ... 41 more > > > Caused by: java.lang.Exception: java.lang.InternalError: Can't connect > > > to X11 window server using 'localhost:0.0' as the value of the DISPLAY > > > variable. > > > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) > > > at sun.awt.X11GraphicsEnvironment.access > > > $100(X11GraphicsEnvironment.java:52) > > > at > > > sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java: > > > 155) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at > > > sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java: > > > 131) > > > at java.lang.Class.forName0(Native Method) > > > at java.lang.Class.forName(Class.java:169) > > > at > > > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen > > > t.java: > > > 68) > > > at java.awt.image.BufferedImage.createGraphics(BufferedImage.java: > > > 1135) > > > at > > > com.google.gwt.resources.rg.ImageBundleBuilder.toPng(ImageBundleBuilder.jav > > > a: > > > 538) > > > at > > > com.google.gwt.resources.rg.ImageResourceGenerator.reencodeToTempFile(Image > > > ResourceGenerator.java: > > > 641) > > > at > > > com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGen > > > erator.java: > > > 567) > > > at > > > com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initA > > > ndPrepare(AbstractClientBundleGenerator.java: > > > 1043) > > > at > > > com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initA > > > ndPrepare(AbstractClientBundleGenerator.java: > > > 1069) > > > at > > > com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.gener > > > ateIncrementally(AbstractClientBundleGenerator.java: > > > 412) > > > at > > > com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally > > > (StandardGeneratorContext.java: > > > 647) > > > at > > > com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: > > > 41) > > > at com.google.gwt.dev.shell.StandardRebindOracle > > > $Rebinder.rebind(StandardRebindOracle.java:78) > > > at > > > com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j > > > ava: > > > 268) > > > at > > > com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.j > > > ava: > > > 141) > > > at > > > com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:585) > > > at > > > com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: > > > 455) > > > at > > > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: > > > 49) > > > > Any ideas how and where I set the GWT headless mode for Maven-GWT? - > > > Dave -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.