----------------------------------------------------------------
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!!!
----------------------------------------------------------------
JServ is crashing when I try to use this code in my servlet:
Frame frame= new Frame(); //works ok
Image myImage = Toolkit.getDefaultToolkit().getImage(picName); //
exception
picName is a String. The code works fine on my windows 2000 development
machine when I put it in a class of it's own for debugging purposes. I cut
and past the code to my Linux machine and on the getImage line I get the
following log.
>raymond:/usr/local/httpd/servlets # tail /var/log/mod_jserv.log
>[01/06/2000 04:28:23:903] (ERROR) ajp12: Servlet Error: java.lang.InternalError:
> Can't connect to X11 window server using ':0.0' as the value of the DISPLAY var
>iable.: Can't connect to X11 window server using ':0.0' as the value of the DISP
>LAY variable.
>[01/06/2000 04:28:23:903] (ERROR) an error returned handling request via protoco
>l "ajpv12"
Jserv 1.1, Apache 1.3.12, Sun JDK 1.2.2, JSDK2.0.
My Servlet has been running fine form months without problem, but this is
can't do.
So why X11?? it is not drawing on any wm, it is just loading an image. I
do have X installed, but gee I haven't run it for ages and can't see any
reason why this code would rely on X at all.
Heeeellp!!
Thanx
Chris :)
--
--------------------------------------------------------------
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]