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

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 v

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

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
TED]> > Data: Sun, 23 Mar 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 Georg

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 Catalina/Tomcat

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

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 J

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

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
lto:[EMAIL PROTECTED] Sent: 20 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 pro

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
oesn't have one. 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: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 pur

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
what it needs to work (which abstract 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 usi

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

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

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 frame

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
' JVM. > >>To do that add : > >> > >>-Djava.awt.headless=true > >> > >>To the : > >> > >>CATALINA_OPTS > >> > >>environment variable. > >> > >>-Chad Johnson > >> > >>-Original Messa

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

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

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

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

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

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

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

2003-03-19 Thread Georges Roux
I can think of cases where headless isn't enough, 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

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

2003-03-19 Thread Bill Barker
sage- > 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 > ofthe display > > > T

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

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

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

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

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 wind

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 win