-----Original Message-----
From: Bill Volk [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 20, 2000 11:27 AM
To: Java Apache Users
Subject: RE: Servlets Rendering to a Frame....Question ... by "machine" I assume you mean the name of the server.I tried that, and I also tried the IP address .... no joy.X is running, when I try to run a servet that renders into a frame and Apache returns a 404 error.Thanks.-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Burgess, Jay
Sent: Wednesday, October 18, 2000 11:20 AM
To: 'Java Apache Users'
Subject: RE: Servlets Rendering to a Frame....The original question was:
> > > Got that, but what do I do to the jserv.properties file to let it
> > > know that X is up?I believe the answer is to add the following to JSERV.PROPERTIES:
wrapper.env=DISPLAY=machine:0
where "machine" is the name of your system.
Jay
-----Original Message-----
From: Greg Lahens [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 18, 2000 1:12 PM
To: Java Apache Users; Java Apache Users
Subject: RE: Servlets Rendering to a Frame....
----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------OK. What on earth is this all about? It sounds like you're trying to have a
servlet render graphics to send to a web page or program waiting for the
graphic? If this is what you are trying to do, then there's no need for X.
X has nothing to do with it at all. Just use the graphics library
(awt.graphics???) to draw into a virtual object then gif encode it then
send the bytes to the response stream...Other than that, I'm not sure what you're asking. Please be more clear
about the goal you are trying to accomplish, setting, environment, and type
of application...-Greg
At 10:41 AM 10/18/00 -0700, Bill Volk wrote:
>----------------------------------------------------------------
>BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>WHEN YOU POST, include all relevant version numbers, log files,
>and configuration files. Don't make us guess your problem!!!
>----------------------------------------------------------------
>
>Server won't run any servlet that does graphics. I was told that X needed
>to be on and that I needed to pass environmental variables (DISPLAY) into
>the system somehow....
>
>Bill
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Bruno
> > Wenger
> > Sent: Wednesday, October 18, 2000 12:58 AM
> > To: Java Apache Users
> > Subject: AW: Servlets Rendering to a Frame....
>
> > Bill,
> >
> > I am not shure what your problem is.
> > I never cared about X or not because it's hidden in AWT.
> >
> > Regards, Bruno
> >
> >
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]Im Auftrag von Bill Volk
> > > Gesendet: Mittwoch, 18. Oktober 2000 06:36
> > > An: Java Apache Users
> > > Betreff: Servlets Rendering to a Frame....
> > >
> > >
> > > ----------------------------------------------------------------
> > > BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> > > WHEN YOU POST, include all relevant version numbers, log files,
> > > and configuration files. Don't make us guess your problem!!!
> > > ----------------------------------------------------------------
> > >
> > > We need to have some servlets generate graphics (Java 2.0) by
> > > drawing into a
> > > Java Frame.
> > >
> > > I understand that you have to have X running to allow servlets to render
> > > graphics.
> > >
> > > Got that, but what do I do to the jserv.properties file to let it
> > > know that
> > > X is up?
> > >
> > > Thanks,
> > >
> > > Bill Volk
> > >
> > >
> > >>
>
Title: RE: Servlets Rendering to a Frame....
Being very much a UNIX novice, I'm not sure I can be of much more
help. But here's my understanding of the situation anyway, in case
something makes sense to you. And we definitely had a similar problem, as
our charting package requires an X display on Solaris to do its
graphics.
Basically, you need an X display running somewhere, which the graphics
package uses to do its rendering. Given that this display exists, you tell
the JVM/graphics package its location by setting the DISPLAY environment
variable. To do this with JServ, set the following property in
JSERV.PROPERTIES:
wrapper.env=DISPLAY=machine:0
(where "machine" is the name of the machine the X
display is on, and "0" is the display
number)
I've also seen "wrapper.env=DISPLAY=unix:0.0" used, which I understand is a
kind of alias for the default display on the local machine.
Jay
- RE: Servlets Rendering to a Frame.... Burgess, Jay
- RE: Servlets Rendering to a Frame.... Bill Volk
- RE: Servlets Rendering to a Frame.... fsalazar
- RE: Servlets Rendering to a Frame.... Burgess, Jay
- RE: Servlets Rendering to a Frame.... Bill Volk
- Re: Servlets Rendering to a Frame.... Travis Low
- RE: Servlets Rendering to a Frame.... Bill Volk