Thad Humphries wrote:
> I'm running JServ 1.0b3 with Apache 1.3.4 on a Sun 2.6 server.
>
> I'm trying the image generation examples in Jason Hunter's book,
> specifically Example 6-1, HelloWorldGraphics.java. This servlet uses AWT
> and Hunter warns that you should either unset or set DISPLAY. I have set
> my DISPLAY to :0.0, exported DISPLAY, ran xhosts +, and restarted Apache.
> But when I run my servlet, I get an internal server error and this in my
> jserv.log:
>
> [23/03/1999 13:21:37:735] (ERROR) ajp11: Servlet Error:
> java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
> the value of the DISPLAY variable.: Can't connect to X11 window server
> using ':0.0' as the value of the DISPLAY variable.
> [23/03/1999 13:21:37:736] (ERROR) an error returned handling request via
> protocol "ajpv11"
>
> I get the same response when I unset DISPLAY.
>
> So, who out there has done this? How do I successfully set DISPLAY such
> that JServ can see it?
if you have a log file of a jvm crashing multiple times, jserv will give up
and dump some debugging info. from this you can glean that the only
environment variables set are the path and the classpath. In order for
display to be exported to the environment that the jvm is running in, you
would have to set it in the same place the path & classpath are set, which i
suspect is taken care of by the binary module. if there isn't such a
configure option already, you might want to patch the jserv source to take an
additional configure option to define environment variables.
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]