Can't connect to X11

2005-09-22 Thread Iin Nurhidayat
Hi All, I found this error : java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. on UNIX platform. Please adv. Thanks Regards - IN - --- Antony GUILLOTEAU [EMAIL PROTECTED] wrote: I wanted to simulate a CLIENt-CERT realm

Re: Can't connect to X11

2005-09-22 Thread David Delbecq
You are not supposed to use awt or swing on a java web server. remove calls to awt/swing or use headless java. Iin Nurhidayat a écrit : Hi All, I found this error : java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. on UNIX

Re: Can't connect to X11

2005-09-22 Thread Christian Mittendorf
Hi, do you use some graphic functions in your project? If so, you should add the following parameter to Tomcat startup: -Djava.awt.headless=true cu cm Am 22.09.2005 um 09:07 schrieb Iin Nurhidayat: Hi All, I found this error : java.lang.InternalError: Can't connect to X11 window

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
On Thu, 2003-03-20 at 20:36, Micael wrote: For me the easiest thing was just to provide the right command line options (java.awt.headless=true) when I started up Tomcat. May I ask, how you did this ? I've also encountered JNI_OnLoad errors runing on Solaris due, I suspect, the lack of

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
I added the headless flag to catalina.sh as follows: # - Execute The Requested Command - echo Using CATALINA_BASE: $CATALINA_BASE echo Using CATALINA_HOME: $CATALINA_HOME echo Using CATALINA_TMPDIR: $CATALINA_TMPDIR echo Using JAVA_HOME:

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
Thanks Micael. Tried the same thing and got the same results. Looks like Catalina/Tomcat is indeed using headless mode but it's not working with my Java (1.4) and operating system (SunOS 5.6). I'm presuming you're using this to create/generate graphics in a servlet ? Do you mind posting sample

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
Hi, Here is a good link: http://www.geocities.com/marcoschmidt.geo/java-image-faq.html#x Hope you enjoy. Georges Stephen Riek wrote: Thanks Micael. Tried the same thing and got the same results. Looks like Catalina/Tomcat is indeed using headless mode but it's not working with my Java (1.4)

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
Here are two uses, if they are of help. I am using Red Hat 7.2 Linux. FIRST: public JPEGEncoder(Image image, int quality, OutputStream out) { MediaTracker tracker = new MediaTracker(this); tracker.addImage(image, 0); try {

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
The material George gave you is really good. Do you have X11 installed, even if not running? I am not a Solaris guy, so don't know what that may mean in that context. At 09:09 AM 3/23/03 +, you wrote: Thanks Micael. Tried the same thing and got the same results. Looks like

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

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

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

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
classes and interfaces to implement). Regards, Chris. -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: Friday, 21 March 2003 7:18 a.m. To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0:0' as the value ofthe display and now

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
. We always used to use this on sun E250s without a display adapter, but now we use headless as it's more reliable. Andy -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: 20 March 2003 21:47 To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0

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

Re: Can't connect to X11 window server using '0:0' as the value ofthe display

2003-03-19 Thread Bill Barker
PROTECTED] Behalf Of Theodore Chen Sent: Mittwoch, 19. März 2003 00:37 To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0:0' as the value ofthe display Try running the Tomcat VM with the -Djava.awt.headless=true system property (set it in an environment variable named

Re: Can't connect to X11 window server using '0:0' as the value ofthedisplay

2003-03-19 Thread Georges Roux
, but if you are that creative, it deserves another topic ;-) Zsolt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Theodore Chen Sent: Mittwoch, 19. März 2003 00:37 To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0:0' as the value

Re: Can't connect to X11 window server using '0:0' as the value ofthe display

2003-03-19 Thread Per Erik Nordbø
Georges Roux wrote: 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

RE: Can't connect to X11 window server using '0:0' as the value of the display

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

Can't connect to X11 window server using '0:0' as the value of thedisplay

2003-03-18 Thread Georges Roux
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

RE: Can't connect to X11 window server using '0:0' as the value of the display

2003-03-18 Thread Filip Hanik
can you try to set the DISPLAY env variable to localhost:0.0 export DISPLAY=localhost:0.0 Filip -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 3:32 PM To: [EMAIL PROTECTED] Subject: Can't connect to X11 window server using '0:0

Re: Can't connect to X11 window server using '0:0' as the value ofthe display

2003-03-18 Thread Theodore Chen
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

RE: Can't connect to X11 window server using '0:0' as the value ofthe display

2003-03-18 Thread Zsolt Koppany
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