You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Desarrollo e Investigación <de...@catenaria.cl> on 2002/06/04 18:09:37 UTC

Problem with Servlet and Graphics

	I've been worked with Servlet and i tried to generate a JPG image but 
Tomcat Displays this error:

java.lang.InternalError: Can't connect to X11 window server using ':0' as the 
value of the DISPLAY variable. at 
sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at 
sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:126) 

I use the Tomcat 4.0.4-b3, Java 1.4.0, Linux Red Hat 7.2



DesInv (Desarrollo e Investigación, Catenaria)




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problem with Servlet and Graphics

Posted by Jun Inamori <ju...@oop-reserch.com>.
Hi,

On Jun04, 2002 12:09 -0400, Desarrollo e Investigacin wrote:
> 
> I've been worked with Servlet and i tried to generate
> a JPG image but Tomcat Displays this error:
> 
> java.lang.InternalError: Can't connect to X11 window
> server using ':0' as the value of the DISPLAY variable.
> at 
> sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
................
> I use the Tomcat 4.0.4-b3, Java 1.4.0, Linux Red Hat 7.2

Because you are using JDK 1.4, please try:
   -Djava.awt.headless=true
option in your start-up script.
For details, please read:
http://java.sun.com/products/java-media/2D/forDevelopers/java2dfaq.html#xvfb

Happy Java programming!
----------------------------------
Jun Inamori
OOP-Reserch
E-mail: jun@oop-reserch.com
URL:    http://www.oop-reserch.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>