Have you tried just setting the java system property to disable the X  
requirement?  Java 5+ all includes the system property  
"java.awt.headless" to allow you to disable the required use of a  
window system for graphics.

For example,

java -Djava.awt.headless RunTests

There is no need to do any DISPLAY or xvfb settings and such.

-Chris

On Oct 21, 2008, at 6:56 AM, Arthur Kalmenson wrote:

>
> For anyone that has a similar problem, you just need to follow
> Manuel's and John's suggestions. Launch Xvfb as follows:
>
> Xvfb :5 >/dev/null 2>&1 &
> proc=$!
>
> Then create a DISPLAY variable:
>
> export DISPLAY=:5
>
> Now Xvfb will continue running so just restart Tomcat and Hudson
> should now build the project correctly.
>
> Regards,
> --
> Arthur Kalmenson
>
>
>
> On Mon, Oct 20, 2008 at 8:32 AM, Arthur Kalmenson <[EMAIL PROTECTED] 
> > wrote:
>> Thank you John! That worked! Now I just need to figure out how to  
>> add that
>> to either Hudson or the Maven build...
>>
>> --
>> Arthur Kalmenson
>>
>>
>> On Fri, Oct 17, 2008 at 7:16 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>  
>> wrote:
>>>
>>> On Oct 17, 1:52 pm, "Arthur Kalmenson" <[EMAIL PROTECTED]>  
>>> wrote:
>>>> Thanks for the reply. I installed xvfb and did the following:
>>>>
>>>> [EMAIL PROTECTED]:~/credentialing-msh/target/gwtTest$ Xvfb :5 >/ 
>>>> dev/null
>>>> 2>&1
>>>> &
>>>> [1] 5726
>>>> [EMAIL PROTECTED]:~/credentialing-msh/target/gwtTest$ proc=$!
>>>> [EMAIL PROTECTED]:~/credentialing-msh/target/gwtTest$ ./
>>>> gwtTest-com.sinai.credentialing.client.GwtTestExampleA.sh
>>>>
>>>> However, the same error occurred. Xvfb is running:
>>>
>>> You also need to set your DISPLAY environment variable to point to  
>>> the
>>> Xvfb instance:
>>>
>>> DISPLAY=:5 ant run-tests
>>>
>>> --
>>> John A. Tamplin, Software Engineer (GWT), Google
>>>>>
>>
>>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to