You are using Xvfb in the wrong place. Since hudson is going to start the
browser, it needs the Xvfb argument. Jboss doesn't need those arguments.

Here is what we did to get Hudson working with gwt test cases

nohup Xvfb :4 -screen 0 1024x768x24 &
DISPLAY=:4 nohup java -jar hudson.war --httpPort=8999 --ajp13Port=8998
>>nohup.out &


--Sri


2009/10/28 Christian López Espínola <penyaskito> <penyask...@gmail.com>

>
> Hi,
>
> I'm trying to get CI working on my server. It's a Linux box with
> JBoss, and no X server.
> When trying to build I got errors when running GwtTests:
>
> [INFO] org.eclipse.swt.SWTError: No more handles [gtk_init_check()
> failed]
> [INFO]  at org.eclipse.swt.SWT.error(SWT.java:3400)
> [INFO]  at org.eclipse.swt.widgets.Display.createDisplay(Display.java:
> 793)
> [INFO]  at org.eclipse.swt.widgets.Display.create(Display.java:781)
> [INFO]  at org.eclipse.swt.graphics.Device.<init>(Device.java:145)
> [INFO]  at org.eclipse.swt.widgets.Display.<init>(Display.java:452)
> [INFO]  at org.eclipse.swt.widgets.Display.<init>(Display.java:443)
> [INFO]  at org.eclipse.swt.widgets.Display.getDefault(Display.java:
> 1522)
> [INFO]  at com.google.gwt.dev.SwtHostedModeBase.<init>
> (SwtHostedModeBase.java:93)
> [INFO]  at com.google.gwt.dev.GWTShell.<init>(GWTShell.java:40)
> [INFO]  at com.google.gwt.junit.JUnitShell.<init>(JUnitShell.java:482)
> [INFO]  at com.google.gwt.junit.JUnitShell.getUnitTestShell
> (JUnitShell.java:399)
> [INFO]  at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:
> 346)
> [INFO]  at com.google.gwt.junit.client.GWTTestCase.runTest
> (GWTTestCase.java:219)
> [INFO]  at junit.framework.TestCase.runBare(TestCase.java:127)
> [INFO]  at junit.framework.TestResult$1.protect(TestResult.java:106)
> [INFO]  at junit.framework.TestResult.runProtected(TestResult.java:
> 124)
> [INFO]  at junit.framework.TestResult.run(TestResult.java:109)
> [INFO]  at junit.framework.TestCase.run(TestCase.java:118)
> [INFO]  at com.google.gwt.junit.client.GWTTestCase.run
> (GWTTestCase.java:132)
> [INFO]  at junit.framework.TestSuite.runTest(TestSuite.java:208)
> [INFO]  at junit.framework.TestSuite.run(TestSuite.java:203)
> [INFO]  at org.codehaus.mojo.gwt.test.MavenTestRunner.doRun
> (MavenTestRunner.java:105)
> [INFO]  at junit.textui.TestRunner.start(TestRunner.java:172)
> [INFO]  at org.codehaus.mojo.gwt.test.MavenTestRunner.main
> (MavenTestRunner.java:63)
>
> I tried with Xvbf, modifying $JBOSS_HOME/bin/run.sh, including the
> following lines at the start of the file:
>
> Xvfb :1 -ac -screen 0 1024x768x8 &
> export DISPLAY=:1
> JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"
>
> But I'm still facing the same problem. Has anyone solved a similar
> situation? Could you give me some advice?
>
> Thanks in advance.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to