tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Joachim" <jens.joac...@syscon-world.de>
Subject Re: java.awt.headless=true in tomcat startup
Date Fri, 04 Feb 2005 17:31:25 GMT
Hi Rodrigo!

By defining the environment variable
CATALINA_OPTS="-server -Djava.awt.headless=true"
you can tell any command line parameter you want to the JVM used by tomcat.

I suggest it is a good idea to use the "-server" parameter, too. This
selects the server VM.

Jens Joachim
Syscon GmbH
E-Mail: Jens.Joachim@syscon-world.de

----- Original Message -----
From: "Rodrigo Avila" <rdeavila@gmail.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Friday, February 04, 2005 5:57 PM
Subject: java.awt.headless=true in tomcat startup


> Hi!
> I try to use some awt\swing classes to convert rtf strings to html in
> an jsp page. But I receive the following Exception:
>
> "Can't connect to X11 window server using ':0.0' as the value of the
> DISPLAY variable."
>
> But, to resolve this problem, I find the following tip:
>
> "assuming you're using a 1.4 JVM, add the following line to your startup
> command:
> $JAVA_COMMAND -Djava.awt.headless=true ..."
>
> But, how I put this option in the Tomcat startup?
>
> --
> Rodrigo de Avila
> rdeavila@gmail.com
>
> http://www.avila.eti.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message