tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Micael Padraig Og mac Grene <>
Subject X11 Windows System and Tomcat
Date Mon, 13 May 2002 00:03:57 GMT
This is maybe not a pure Tomcat question, but I am running a servlet on 
Tomcat which uses javax.swing, to resize jpeg images, but which does not, 
of course, want to display those images.  This throws an exception, due to 
a bug in the JDK 1.4.

The exception is:

Exception in thread "main" java.lang.InternalError: Can't connect to X11 
window server using ':0,0' as the value of the DISPLAY variable.
	at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
	at sun.awt.X11GraphicsEnvironment.<clinit><>(
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(
	at Method)
	at java.awt.Toolkit.getDefaultToolkit(
	at javax.swing.ImageIcon.(init>(
	at javax.swing.ImageIcon.<init>(

ps aux reveals: "/etc/X11/X -auth /var/lib/kdm/authfiles/A:0-0Dqymv"

Anyone know the command I need to use to solve this, if any?  I would 
prefer not to use a virtual X11 system, or to build a substitute Toolkit 
for the JDK.



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message