It looks like your problem is that the getImages() method is doing
something to prompt the JDK to try to fetch an AWT Toolkit. There
are probably ways to allow it to get the Toolkit. You'll
need XWindow running on the Red Hat box, and you might have to give
user nobody special access to the display- depending on what type of
authentication you're using (xauth or xhost, for example). This is
probably a pain, though, as X will eat up memory better used for Apache.
So, the better question is why is your program trying to get an AWT
Toolkit (it's something that happens in the getImages() method) and is
there a way to prevent that?
I was deep in meditation when Warren Johnson awoke me by saying:
>
> I have a program that basically take parts of several graphics and merges
> them into one. Created by the guy before me in Java. Originally on an SGI
> box with Netscape Enterprise Server. Moved it to a Redhat 5.2 machine with
> more memory and disk space with the latest Apache Web Server and this is JDK
> 1.1.7. When I create the picture via my browser, the Apache error log shows
> the following:
>
> _X11TransSocketUNIXConnect: Can't connect: errno = 111
> java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
> the value of the DISPLAY variable.
> at sun.awt.motif.MToolkit.<init>(MToolkit.java:43)
> at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:394)
> at makeSnowman.getImages(makeSnowman.java:32)
> at makeSnowman.combine(makeSnowman.java:72)
> at makeSnowman.main(makeSnowman.java:25)
>
> I'm new to Java. Just got out of Java training about a month ago.
>
> I need help. HHHHEEEEEELLLLLLLPPPPPPPPP!!!!!!
> Thanks
> Warren
>
>
>
--
¤--------------------------------------------------------------------¤
| Aaron Gaudio mailto:[EMAIL PROTECTED] |
| http://www.rit.edu/~adg1653/ |
¤--------------------------------------------------------------------¤
| "The fool finds ignorance all around him. |
| The wise man finds ignorance within." |
¤--------------------------------------------------------------------¤
Use of any of my email addresses is subject to the terms found at
http://www.rit.edu/~adg1653/email.shtml. By using any of my addresses, you
agree to be bound by the terms therein.