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

Reply via email to