----------------------------------------------------------------
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!!!
----------------------------------------------------------------


I had to make sure that NS_JAVA is not set to true
in the java start skript of the jdk to get that running.
The relevant code reads after that:

if [ -z "$DISPLAY" -a -z "$NSJAVA" ]
then
    NS_JAVA=true
    export NS_JAVA
fi

This way the default behaviour is as before.

And what I start from apache config is the skript java_static which reads:
#!/bin/sh
NSJAVA="xx"
export NSJAVA
exec /usr/lib/jdk1.1.7/bin/java "$@" 2>>/tmp/java_static.err

And I did NOT set the DISPLAY variable.
I used it for a jsp page producing a gif image :-)
 

>
>I am running apache 1.3.9 with Jserv 
>on linux ppc (redhat 5+)
>
>I have a servlet that creates an image using the awt package
>along with a gifencoder from http://www.acme.com/
>
>I try to execute the servlet and i get the following error 
>in the appache error_log
>
>[Wed Nov  3 09:16:13 1999] [error] JServ: ajp12: 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.
>[Wed Nov  3 09:16:13 1999] [error] JServ: an error returned handling
>request via protocol "ajpv12"
>java.lang.InternalError: Can't connect to X11 window server using ':0.0'
>as the value of the DISPLAY variable.
>        at
>org.apache.jserv.JServConnection.processRequest(JServConnection.java:320)
>        at org.apache.jserv.JServConnection.run(JServConnection.java:188)
>        at java.lang.Thread.run(Thread.java:479)
>
>I have tried setting the DISPLAY variable to unix:0.0  in the
>jserv.properities file that works if the currently logged in user
>allows conection to the local x server.  if not i get the same message
>replacing :0.0 with unix:0.0 
>
>my question , is this a config issue I would like to use the awt features
>for images 
>
>if any one has any ideas please let me know,
>
>Thanks in advance for any help you can provide.
>Scott McLaughlin
>WebMaster - DUsers
>World First Macintosh Users Group
>
>
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Archives and Other:  <http://java.apache.org/main/mail.html>
>Problems?:           [EMAIL PROTECTED]
>

Ciao,
        Carsten Heyl

  Carsten Heyl                          [EMAIL PROTECTED]
  NADS - Solutions on Nets              http://www.nads.de/
  NADS GmbH                             http://www.pixelboxx.de/
  Hildebrandtstr. 4E                    Tel.: +49 211 933 02-90
D-40215 Duesseldorf                     Fax.: +49 211 933 02-93


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to