I haven't tried it, but this should work. The -D option is just
like the -X options that people use for setting the heap memory. Add it to
CATALINA_OPTS (or TOMCAT_OPTS for those running TC3), restart and you should
be running just fine.
Randy
-Original Message-
Thanks Randy,
I modified catalina.sh file inserting
if [ -z $CATALINA_OPTS ] ;
then CATALINA_OPTS=-Djava.awt.headless=true headless support
fi ..
restarted the server and I get the following exception:
java.awt.HeadlessException
at
] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 3:00 PM
To: Tomcat Users List
Subject: RE: Tomcat and j2se1.4 with headless support
Thanks Randy,
I modified catalina.sh file inserting
if [ -z $CATALINA_OPTS ] ;
then CATALINA_OPTS=-Djava.awt.headless=true headless
.
Randy
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 3:00 PM
To: Tomcat Users List
Subject: RE: Tomcat and j2se1.4 with headless support
Thanks Randy,
I modified catalina.sh file inserting
if [ -z $CATALINA_OPTS
[EMAIL PROTECTED] wrote:
I modified catalina.sh file inserting
if [ -z $CATALINA_OPTS ] ;
then CATALINA_OPTS=-Djava.awt.headless=true headless support
I think the idea is that you just need to do a:
$ export CATALINA_OPTS=-Djava.awt.headless=true
$ bin/startup.sh
No need
Thanks Christopher,
can you please post the entire servlet sample code you used!
can't figure what I'm doing wrong here. vasile
Christopher