Hi Albert,

Thanks for the reply. I had JRE 1.5 and also used
-Djava.awt.headless=true option without success.

Got this suggestion from a friend to run Xvfb and use the DISPLAY
variable as below:

#Start Xvfb (startup.sh) 
/usr/XVFB-/Xvfb :20 &

#Set the DISPLAY var in catalina.sh
export DISPLAY=localhost:20.0 

The error is gone. Thanks


Thanks & Regards,
 
Gopi
 
Phone: +65-6854 4242
Mobile: +65-8186 2404
 
For Kana matters, always mail to *GCG ITO IDC-FEP Email Management

-----Original Message-----
From: Albert Kam [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 2:42 PM
To: Tomcat Users List
Subject: Re: Unable to start Tomcat due to DISPLAY variable issue

Oh dear ..

I've experienced this before.

It seems that your server is running in a headless environment or
without X or desktop libraries installed. Could be a init 3 in unix
environment.

In this case, if your JDK is >= 1.4.x, it's easy to solve. =)

You just need to edit your catalina.sh

Add this line if you havent got one, or edit it if you already have it :

JAVA_OPTS=-Djava.awt.headless=true

HTH,
Albert Kam

On Tue, Aug 26, 2008 at 12:09 PM, Jayaraman, Gopinath <
[EMAIL PROTECTED]> wrote:

> Hi Everyone,
>
> I am having this typical issue which many have faced which is below:
>
> Graphics ENV testing has failed. The Server is going to exit. Please 
> check your configuration and retry.
> [2008-08-26 13:01:01.461] LogError
> java.lang.RuntimeException: Graphics ENV testing has failed. The 
> Server is going to exit. Please check your configuration and retry.
>        at jet.server.ServerEnv.$igc(jet/server/ServerEnv)
>        at jet.server.ServerEnv.check(jet/server/ServerEnv)
>        at
> jet.server.jrserver.JRRptServer.init(jet/server/jrserver/JRRptServer)
>        at
>
jet.server.jrserver.http.JRHttpRptServer.init(jet/server/jrserver/http/J
RHttpRptServer)
>        at
> jet.server.api.http.HttpUtil.initEnv(jet/server/api/http/HttpUtil)
>        at 
> jet.server.servlets.JRServlet.init(jet/server/servlets/JRServlet)
>
> According to suggestions from different threads, I have tried setting 
> CATALINA_OPTS="$CATALINA_OPTS "-Djava.awt.headless=true
>
> since the server is running in Solaris env. (5.8) and Tomcat 5.5.9
>
> The production server is in a controlled environment, managed by 
> System Admins, with limited acces to me. This was working fine one 
> month back, but suddenly this issue started to crop up.
> We dont have much expertise in Tomcat here, so I could not much help 
> from colleagues.
> I hope to get some pointers here.
>
> Thanks a lot in advance.
>
> Regards,
> Gopi
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
> e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Do not pursue the past. Do not lose yourself in the future.
The past no longer is. The future has not yet come.
Looking deeply at life as it is in the very here and now, the
practitioner dwells in stability and freedom.
(Thich Nhat Hanh)

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to