You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Jayaraman, Gopinath " <go...@citi.com> on 2008/08/26 07:09:53 UTC

Unable to start Tomcat due to DISPLAY variable issue

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/JRHttpRptServer)
        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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Unable to start Tomcat due to DISPLAY variable issue

Posted by "Jayaraman, Gopinath " <go...@citi.com>.
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:moonblade.wolf@gmail.com] 
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 <
gopinath.jayaraman@citi.com> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


--
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Unable to start Tomcat due to DISPLAY variable issue

Posted by Albert Kam <mo...@gmail.com>.
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 <
gopinath.jayaraman@citi.com> 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/JRHttpRptServer)
>        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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
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)

RE: Unable to start Tomcat due to DISPLAY variable issue

Posted by "Jayaraman, Gopinath " <go...@citi.com>.
 
Hi Johnny,

Thanks for pointing out. I thought I can raise any Tomcat issues in this
forum.

Good news is that I managed to get rid of this problem by running Xvfb
server and using the DISPLAY variable to point to this display.
Also removed the -Djava.awt.headless=true option. Now the error is gone.

Thanks anyways for the quick response.

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: Johnny Kewl [mailto:john@kewlstuff.co.za] 
Sent: Tuesday, August 26, 2008 2:21 PM
To: Tomcat Users List
Subject: Re: Unable to start Tomcat due to DISPLAY variable issue


----- Original Message -----
From: "Jayaraman, Gopinath " <go...@citi.com>
To: <us...@tomcat.apache.org>
Sent: Tuesday, August 26, 2008 7:09 AM
Subject: Unable to start Tomcat due to DISPLAY variable issue


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

----------------

Gopi I dont know... dont use Sun stuff which I imagine this server is...
But the linux guru here says he thinks its because the X11 libraries are

missing or corrupted.
Tomcat may be triggering it because a servlet needs a graphics lib...
like 
for example captcha needs the graphics head.
Cant make the server headless if the apps need that stuff...
... we guess ;)
------------------------------------------------------------------------
---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
------------------------------------------------------------------------
--- 


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


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


Re: Unable to start Tomcat due to DISPLAY variable issue

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
----- Original Message ----- 
From: "Jayaraman, Gopinath " <go...@citi.com>
To: <us...@tomcat.apache.org>
Sent: Tuesday, August 26, 2008 7:09 AM
Subject: Unable to start Tomcat due to DISPLAY variable issue


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/JRHttpRptServer)
        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

----------------

Gopi I dont know... dont use Sun stuff which I imagine this server is...
But the linux guru here says he thinks its because the X11 libraries are 
missing or corrupted.
Tomcat may be triggering it because a servlet needs a graphics lib... like 
for example captcha needs the graphics head.
Cant make the server headless if the apps need that stuff...
... we guess ;)
---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--------------------------------------------------------------------------- 


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