Hey, From the 1.4.x api docs: "HeadlessException: Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse."
That Frame seems to be the culprit of this. -Chad Johnson -----Original Message----- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:09 AM To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException Hi, I put System.setProperty("java.awt.headless", "true"); in my servlet init method it's ok, but now when I open a Frame, I get the exception HeadlessException: java.awt.HeadlessException at java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:1 21) at java.awt.window.<init>(Window.java:226) at java.awt.Frame.<init>(Frame.java:398) ... What can I do? Georges Chad Johnson wrote: >If I had to wager a guess you'll need to run tomcat in a 'headless' >JVM. To do that add : > >-Djava.awt.headless=true > >To the : > >CATALINA_OPTS > >environment variable. > >-Chad Johnson > >-----Original Message----- >From: Georges Roux [mailto:[EMAIL PROTECTED] >Sent: Tuesday, March 18, 2003 5:32 PM >To: [EMAIL PROTECTED] >Subject: Can't connect to X11 window server using '0:0' as the value of >the display > > >Hello everybody, > >Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use >J2sdk1.4.1_01. > >I have a servlet which manipulate exif informations in jpg images. it >works well but when I try to run it on tomcat it fails (error 500) > >I have the following error: >"Can't connect to X11 window server using '0:0' as the value of the >display" > >What can I do? > >Georges > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > -- 18:54 18:54 connard 18:55 18:54 t'as que ca a faire? ;) 18:56 18:55 je m'ennuies ferme ouais ! encore 5mn avant la fin du taf, donc j'en profite pour passer dans les fortunes :) +==========================================+ | | | Georges Roux | | URL : georgesroux.pacageek.org | | email : [EMAIL PROTECTED] | | mobile : +33 (0) 613977573 | +==========================================+ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
