java.awt.HeadlessException

2004-11-16 Thread indu ss
Hi, I'm using Tomcat 5.0.12,J2sdk1.5 on Linux Fedora 2 . I need to have a servlet which displays jpg images without using Xserver. I get this error even after starting tomcat with CATALINA_OPTS=-Djava.awt.headless=true and also with Xvfb running. java.awt.HeadlessException

RE: java.awt.HeadlessException

2004-11-16 Thread Shapira, Yoav
-Original Message- From: indu ss [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:11 AM To: [EMAIL PROTECTED] Subject: java.awt.HeadlessException Hi, I'm using Tomcat 5.0.12,J2sdk1.5 on Linux Fedora 2 . I need to have a servlet which displays jpg images without using Xserver. I get

RE: java.awt.HeadlessException

2004-11-16 Thread Mike Curwen
: java.awt.HeadlessException Hi, I'm using Tomcat 5.0.12,J2sdk1.5 on Linux Fedora 2 . I need to have a servlet which displays jpg images without using Xserver. I get this error even after starting tomcat with CATALINA_OPTS=-Djava.awt.headless=true and also with Xvfb running. java.awt.HeadlessException

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Stephen Riek
\ -Djava.io.tmpdir=$CATALINA_TMPDIR \ -Djava.awt.headless=true \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 fi But that just resulted in the following error, java.awt.HeadlessException

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Micael
, java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121) at java.awt.Window.(Window.java:266) at java.awt.Frame.(Frame.java:398) at java.awt.Frame.(Frame.java:363) at ImageUtils.loadImage(Unknown Source) where

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Stephen Riek
\ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 fi But that just resulted in the following error, java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121) at java.awt.Window.(Window.java:266) at java.awt.Frame

Re: Can't connect to X11 window server using '0:0' as the valueof the display and now java.awt.HeadlessException

2003-03-23 Thread Georges Roux
, java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121) at java.awt.Window.(Window.java:266) at java.awt.Frame.(Frame.java:398) at java.awt.Frame.(Frame.java:363) at ImageUtils.loadImage(Unknown Source) where the loadImage() function is simply supposed to load

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Micael
\ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ -Djava.awt.headless=true \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 fi But that just resulted in the following error, java.awt.HeadlessException

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Micael
But that just resulted in the following error, java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121) at java.awt.Window.(Window.java:266) at java.awt.Frame.(Frame.java:398) at java.awt.Frame.(Frame.java:363) at ImageUtils.loadImage(Unknown Source) where

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Luciano Kiniti Issoe
2003 12:15:04 -0800 Para: Tomcat Users List [EMAIL PROTECTED] Assunto: Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException The material George gave you is really good. Do you have X11 installed, even if not running? I am

Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException

2003-03-20 Thread Georges Roux
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:121) at java.awt.window.init

RE: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-20 Thread Chad Johnson
: 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

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-20 Thread Micael
HeadlessException: java.awt.HeadlessException at java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:121) 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

Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException

2003-03-20 Thread p niemandt
HeadlessException: java.awt.HeadlessException at java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:121) 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

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-20 Thread Glenn Parsons
At 07:18 PM 3/20/2003 +, you wrote: ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs on a linux box without X, and had the same problems: The headless seemed to work, well, kinda, but not to my liking): So I went the xvfb route: This is a virtual

Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException

2003-03-20 Thread p niemandt
Difficult to say: What kind of problems? I start mine using Xvfb :0 -screen 0 1600x1200x32 {I just added it to rc.local } On Thu, 2003-03-20 at 19:27, Glenn Parsons wrote: At 07:18 PM 3/20/2003 +, you wrote: ok: there is another solution to the headless thing: (I wrote a graphical

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-20 Thread Glenn Parsons
At 07:59 PM 3/20/2003 +, you wrote: Difficult to say: What kind of problems? I start mine using Xvfb :0 -screen 0 1600x1200x32 {I just added it to rc.local } Will retry with resolution change. Thanks, Glenn - To

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-20 Thread Micael
For me the easiest thing was just to provide the right command line options (java.awt.headless=true) when I started up Tomcat. At 02:27 PM 3/20/03 -0500, you wrote: At 07:18 PM 3/20/2003 +, you wrote: ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs

RE: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException

2003-03-20 Thread Chris Dodunski
java.awt.HeadlessException ok: there is another solution to the headless thing: (I wrote a graphical servlet that runs on a linux box without X, and had the same problems: The headless seemed to work, well, kinda, but not to my liking): So I went the xvfb route: This is a virtual frame buffer to can install

Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException

2003-03-20 Thread p niemandt
Yep: Done correctly, this is probably the more 'correct' solution, but, and I'm probably opening myself to a lot of flamebait, but I do suspect that using something like Xvfb might give some advantages that using headless won't. For example, and I'm just guessing, but I think that 'headless' is

RE: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException

2003-03-20 Thread Andy Eastham
:0' as the value ofthe display and now java.awt.HeadlessException Yep: Done correctly, this is probably the more 'correct' solution, but, and I'm probably opening myself to a lot of flamebait, but I do suspect that using something like Xvfb might give some advantages that using headless won't

Re: Can't connect to X11 window server using '0:0' as the value ofthedisplay and now java.awt.HeadlessException

2003-03-20 Thread Georges Roux
March 2003 21:47 To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException Yep: Done correctly, this is probably the more 'correct' solution, but, and I'm probably opening myself to a lot of flamebait, but I do suspect