After the various helpful suggestions on how to proceeed with my GIF
generating servlet, I've discovered that I can prevent the worrying
error message I was getting:

java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment at
java.lang.Class.forName0(Native Method)

by putting something like this:

wrapper.env=DISPLAY=localhost:1.1

in the jserv.properties file.

However... I'm now getting this error message:

java.lang.InternalError: Can't connect to X11 window server using
'localhost:1.1' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:61)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:124)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:63)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1009)

This is despite the fact that a virtual X server is running:

Xvfb :1 -screen 1 1600x1200x16 -fp
/usr/X11R6/lib/X11/fonts/URW,/usr/X11R6/lib/X11/fonts/misc &

I've tried various values for the DISPLAY variable but none seem to
work.

Does anyone have any idea why the servlet engine isn't able to connect
to Xvfb?


Robbie


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to