Re: Java2D Servlets on Linux

1999-07-16 Thread dan
Robbie Baldock wrote: > Nathan Meyers wrote: > > > No, this won't work. > > I didn't think it would! > > > Environment variables are associated with Unix processes and passed to > > child processes. You can't really set one "just for the servlet", you need > > to set it for the Unix process und

Re: Java2D Servlets on Linux (Apache/JServ)

1999-07-16 Thread Robbie Baldock
Jacek Laskowski wrote: >> I'm uncertain if this helps, but give that a try: > >> wrapper.env=DISPLAY=:1 >Robbie> Tried it - it can't connect. Actually, I tell a lie - it is now connecting (on DISPLAY=:1)! (I wasn't waiting long enough for Apache and JServ to restart.) However, the servlet is

Re: Java2D Servlets on Linux (Apache/JServ)

1999-07-16 Thread Robbie Baldock
Ulli Kortenkamp wrote: > > > "Robbie" == Robbie Baldock <[EMAIL PROTECTED]> writes: > > Robbie> Jacek Laskowski wrote: > >> I'm uncertain if this helps, but give that a try: > > >> wrapper.env=DISPLAY=:1 > > Robbie> Tried it - it can't connect. > > Could it be that the virt

Re: Java2D Servlets on Linux (Apache/JServ)

1999-07-16 Thread Ulli Kortenkamp
> "Robbie" == Robbie Baldock <[EMAIL PROTECTED]> writes: Robbie> Jacek Laskowski wrote: >> I'm uncertain if this helps, but give that a try: > >> wrapper.env=DISPLAY=:1 Robbie> Tried it - it can't connect. Could it be that the virtual framebuffer denies the permission to the

Re: Java2D Servlets on Linux (Apache/JServ)

1999-07-16 Thread Robbie Baldock
Jacek Laskowski wrote: > I'm uncertain if this helps, but give that a try: > wrapper.env=DISPLAY=:1 Tried it - it can't connect. Robbie -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble?

Re: Java2D Servlets on Linux (Apache/JServ)

1999-07-16 Thread Jacek Laskowski
Robbie Baldock wrote: > [...] > by putting something like this: > > wrapper.env=DISPLAY=localhost:1.1 > > in the jserv.properties file. > > However... I'm now getting this error message: > > java.lang.InternalError: Can't connect to X11 window server using > 'localhost:1.1' as the value of th

Re: Java2D Servlets on Linux (Apache/JServ)

1999-07-16 Thread Robbie Baldock
After the various helpful suggestions on how to proceeed with my GIF generating servlet, I've discovered that I can prevent the worrying error message I was getting: java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment at java.lang.Class.forName0(Native Method) by putting something lik

Re: Java2D Servlets on Linux

1999-07-15 Thread Chris Abbey
>> >> java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment >> >> at java.lang.Class.forName0(Native Method) >> > You're right, that's not the message you'd see with an unset DISPLAY >> > variable. That class should be in rt.jar... I wonder why you're not >> > finding it. >> >> Mmm indee

Re: Java2D Servlets on Linux

1999-07-15 Thread Nathan Meyers
Robbie Baldock wrote: > > Nathan Meyers wrote: > > > No, this won't work. > > I didn't think it would! > > > Environment variables are associated with Unix processes and passed to > > child processes. You can't really set one "just for the servlet", you need > > to set it for the Unix process

Re: Java2D Servlets on Linux

1999-07-15 Thread Robbie Baldock
Nathan Meyers wrote: > No, this won't work. I didn't think it would! > Environment variables are associated with Unix processes and passed to > child processes. You can't really set one "just for the servlet", you need > to set it for the Unix process under which the servlet is running - > mea

Re: Java2D Servlets on Linux

1999-07-15 Thread Nathan Meyers
Robbie Baldock wrote: > > I'm still trying to get Java2D to work on Linux. My latest strategy is > to run my GIF generation program as a servlet. > > What I'm doing is firing up Xvfb to simulate an X environment but then > of course I need to set the DISPLAY environment variable for the servlet

Java2D Servlets on Linux

1999-07-15 Thread Gregory Steuck
> "Robbie" == Robbie Baldock <[EMAIL PROTECTED]> writes: Robbie> At the moment I'm calling this in my servlet's init(): Robbie> Runtime.getRuntime().exec("DISPLAY=localhost:1.1"); Robbie> Runtime.getRuntime().exec("export DISPLAY"); Robbie> Which I suspect is the wrong way t

Java2D Servlets on Linux

1999-07-15 Thread Robbie Baldock
I'm still trying to get Java2D to work on Linux. My latest strategy is to run my GIF generation program as a servlet. What I'm doing is firing up Xvfb to simulate an X environment but then of course I need to set the DISPLAY environment variable for the servlet and I'm unclear as to how I shou