I've had weird troubles of this nature too on Solaris. I've never quite
pinned it down but I must have X running ( at least when the process
that creates the graphics context starts, then I can quit X ) and I think
I have to have a user logged in too, but if my one user that is logged in has
done so through a remote client ( like a remote telnet from Windows )
then all the images generated come out totally black. I have to log in
on the server itself to make it work right.

GENE


David Wall wrote:
>
> I run them under Linux, and I have found that the web server needs to have X
> running, and in fact, there must be someone logged on to X so that the
> DISPLAY=:0.0 will be available and usable.
>
> It's a bit odd, but even if the image generation will NOT display the image,
> Java (blackdown jdk 1.1.7) will not return things like Graphics to draw the
> image on unless you have either displayed the Frame (or better by calling
> addNotify() to get the peers created without actually displaying
> anything) -- via frame.setVisible(true); frame.setVisible(false); -- and you
> can't do these without having the display available.
>
> But, I'd sure like to know if anybody has solved this better.  As it is
> right now, whenever my web server is rebooted, I must login (to any X
> account) via xdm to allow the DISPLAY to work.
>
> David
>
> >I know that many of you have experience using dynamically generated
> >images from servlets on Solaris/UNIX hosts and was wondering if anybody
> >had an answer to a recurring problem of mine. I have a servlet that
> >generates an image and serves it back to the client.  I'm trying to
> >explain to an ISP how to set up their system for image generation.  My
> >questions are:
> >
> >What software has to be installed on the Web server?
> >What system environment variables have to be set?
> >What has to be running on the Web server to make it all work?
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

--
                                        Gene McKenna
  BLUEDOT.COM                           [EMAIL PROTECTED]
  Event Management Software             tel: 415.979.9550 x13
                                        fax: 415.979.9551

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to