----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Thanx Joseph
This is puzzling ... I am running Sun JDK not Blacktown, is the problem
the same for both versions?
Thanx
Chris
On Tue, 30 May 2000 15:19:31 -0400, Joseph Shraibman 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!!!
>----------------------------------------------------------------
>
>It's an old problem having to do with the xlibs being loaded as soon as
>you use anything related to awt. To work around it you just have to
>start a fake xserver. I forget exactly how, you can ask them at the
>blackdown mailing list.
>
>Brevsville Administrator 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!!!
>> ----------------------------------------------------------------
>>
>> 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]
>
>
>--
>--------------------------------------------------------------
>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]
>
--
--------------------------------------------------------------
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]