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

If you need X from a servlet, you can always try xvfb (Vitual Frame Buffer)
that comes with X11R6.  This server will pretend to be a display (no
hardware needed) so anything that needs a display can get one anytime.  If
you search for xvfb on www.javaworld.com, that will point you in the
direction of where you can find xvfb for Solaris already built if you don't
currently have it (now if only someone had xvfb pre-built for HP-UX I could
have, I'd be real happy).

kevin

-----Original Message-----
From: David Morton [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 15, 1999 11:16 PM
To: Java Apache Users
Subject: Re: gif servlet X windows problem


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


         Yes I had the same problem...You need an awt at your disposal (not 
in command line mode).  I had to switch the server to NT.  You may want to 
try while you have X open.  I haven't tried that.

David


At 04:03 PM 10/15/99 +0200, you 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!!!
>----------------------------------------------------------------
>
>
>I am using this servlet:
>http://www.servlets.com/jsp/examples/ch06/HelloWorldGraphics.java
>(The gif encoder is here:
>http://www.acme.com/java/software/Acme.JPM.Encoders.GifEncoder.html)
>
>It works fine with the JDSK2.0 servlet runner, but I can't get it
>running
>on my apache servlet enabled webserver (all other Servlets works fine
>on bouth apache and servletrunner.)
>
>The problem is this line:
>    frame.addNotify();
>
>That results in this error (there is an FAQ answer to fix that errror):
>
>java.lang.InternalError: Can't connect to X11 window server using ':0.0'
>as the value of the DISPLAY variable.
>         at java.lang.Throwable.fillInStackTrace(Native Method)
>         at
>org.apache.jserv.JServConnection.run(JServConnection.java:349)
>
>If I from the command line enter
>xhost +
>I get this error instead:
>
>java.lang.NoClassDefFoundError: sun/awt/motif/MToolkit
>         at java.lang.Throwable.fillInStackTrace(Native Method)
>         at
>org.apache.jserv.JServConnection.run(JServConnection.java:349)
>
>I understand that this is something with the environment. How can
>I fix it? I am using Apache 1.2.6 on a UNIX, Sun solaris 2.6 system.
>
>  / Mattias
>
>
>
>--
>--------------------------------------------------------------
>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]

Reply via email to