RE: Image Scaling Code

2006-01-13 Thread Wouter Boers
-Original Message- From: Ben Kim [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 7:54 AM To: Tomcat Users List Subject: Re: Image Scaling Code This may or may not be the case with you. I had a similar error (X11, DISPLAY) with an earlier version of tomcat included in a 3rd party package

Re: Image Scaling Code

2006-01-13 Thread Jarrar Hussain
[mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 7:54 AM To: Tomcat Users List Subject: Re: Image Scaling Code This may or may not be the case with you. I had a similar error (X11, DISPLAY) with an earlier version of tomcat included in a 3rd party package, on linux. After I installed

Re: Image Scaling Code

2006-01-13 Thread Dakota Jack
headless I think the command is. On 1/12/06, Dakota Jack [EMAIL PROTECTED] wrote: You need to set a java command option so that your code won't search for a display. Apparently you are using this with a server that has no monitor? I forget the option but look them up under the java command

RE: Image Scaling Code

2006-01-13 Thread Ben Kim
the errors mentioned below when you don't have a graphical shell running on your system. Regards, Wouter -Original Message- From: Ben Kim [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 7:54 AM To: Tomcat Users List Subject: Re: Image Scaling Code This may or may not be the case

Re: Image Scaling Code

2006-01-12 Thread Wendy Smoak
On 1/12/06, Justin Jaynes [EMAIL PROTECTED] wrote: I've written a java class to scale jpeg images. But I can't seem to get it to work. Can anyone point me in the right direction? javax.servlet.ServletException: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY

Re: Image Scaling Code

2006-01-12 Thread Mark Hagger
You need to have: -Djava.awt.headless=true in your java start up args, this will prevent it from trying to talk to an X server. Obviously some image related stuff has to talk to an X server, but just ImageIO stuff is fine. Mark On Thursday 12 January 2006 19:31, Frank W. Zammetti wrote: I

RE: Image Scaling Code

2006-01-12 Thread Lawrence, Gabriel
To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Image Scaling Code I aked Yaov Shapira if Java Questions were ok for this list. He said it was fine because this is a USER list for Tomcat. And java class programming has a great deal to do with using Tomcat. Frank W. Zammetti [EMAIL

Re: Image Scaling Code

2006-01-12 Thread Frank W. Zammetti
D'oh! Now *THAT* rings a bell :) Mark Hagger wrote: You need to have: -Djava.awt.headless=true in your java start up args, this will prevent it from trying to talk to an X server. Obviously some image related stuff has to talk to an X server, but just ImageIO stuff is fine. Mark On

Re: Image Scaling Code

2006-01-12 Thread Tim Funk
FAQ .. http://tomcat.apache.org/faq/unix.html#x -Tim Justin Jaynes wrote: Hello all, I've written a java class to scale jpeg images. But I can't seem to get it to work. Can anyone point me in the right direction? - To

Re: Image Scaling Code

2006-01-12 Thread Ryan McDonald
i believe adding this to your CATALINA_OPTS variable will solve this issue -Djava.awt.headless=true On 12-Jan-06, at 2:26 PM, Justin Jaynes wrote: Hello all, I've written a java class to scale jpeg images. But I can't seem to get it to work. Can anyone point me in the right direction?

Re: Image Scaling Code

2006-01-12 Thread Dakota Jack
You need to set a java command option so that your code won't search for a display. Apparently you are using this with a server that has no monitor? I forget the option but look them up under the java command and it will be obviously. It ends in less as I recall. On 1/12/06, Justin Jaynes

Re: Image Scaling Code

2006-01-12 Thread Ben Kim
This may or may not be the case with you. I had a similar error (X11, DISPLAY) with an earlier version of tomcat included in a 3rd party package, on linux. After I installed Xvfb (x virtual frame buffer) server rpm, the error went away. (http://www.xfree86.org/4.0.1/Xvfb.1.html) I think there

Re: Image Scaling Code

2006-01-12 Thread Ben Kim
@tomcat.apache.org Subject: Re: Image Scaling Code This may or may not be the case with you. I had a similar error (X11, DISPLAY) with an earlier version of tomcat included in a 3rd party package, on linux. After I installed Xvfb (x virtual frame buffer) server rpm, the error went away. (http