Topic
  • 1 reply
  • Latest Post - ‏2010-05-05T15:57:47Z by Francois Trible
StellaBonino
StellaBonino
8 Posts

Pinned topic deployed app not working

‏2010-05-03T15:27:30Z |
I developed a jviews jsf web application in my machine where I installed my ilog product.
I´m using Tomcat6 and the application works ok in the tomcat installed in my machine.

When I deployed my war in a tomcat of another machine it doesn´t display any graphics, only the toolbar and some decoration gifts.

In the log file I have the following errors:

java.lang.RuntimeException: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at ilog.views.sdm.IlvSDMEngine.loadData(Unknown Source)
at ilog.views.sdm.IlvSDMEngine.d(Unknown Source)
at ilog.views.sdm.IlvSDMEngine.setModel(Unknown Source)
at ilog.views.sdm.IlvSDMEngine.setModel(Unknown Source)
at test.GalleryBean$ModelUpdater.updateModel(GalleryBean.java:1060)
at test.GalleryBean$ModelUpdater.run(GalleryBean.java:1049)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
at java.awt.Scrollbar.<init>(Scrollbar.java:405)
at java.awt.Scrollbar.<init>(Scrollbar.java:375)
at ilog.views.awt.IlvScrollManagerView.a(Unknown Source)
at ilog.views.awt.IlvScrollManagerView.<init>(Unknown Source)
at ilog.views.awt.IlvScrollManagerView.<init>(Unknown Source)
at ilog.views.sdm.renderer.IlvLegendRenderer.c(Unknown Source)
at ilog.views.sdm.renderer.IlvLegendRenderer.prepareRendering(Unknown Source)
at ilog.views.sdm.renderer.IlvFilterSDMRenderer.prepareRendering(Unknown Source)
at ilog.views.sdm.renderer.IlvDecorationRenderer.prepareRendering(Unknown Source)
at ilog.views.sdm.renderer.IlvFilterSDMRenderer.prepareRendering(Unknown Source)
at ilog.views.sdm.renderer.IlvFilterSDMRenderer.prepareRendering(Unknown Source)
at ilog.views.sdm.IlvSDMEngine.f(Unknown Source)
at ilog.views.sdm.IlvSDMEngine.a(Unknown Source)
... 7 more

where updateModel is a method where I fill the data model from different source, a remote database and a remote jmx service.

Any licence problems perhaps?
Last year I have deployed an application in another machine and it´s still working ok, I don´t know what is happening know.

I would appreciate any help!
Updated on 2010-05-05T15:57:47Z at 2010-05-05T15:57:47Z by Francois Trible
  • Francois Trible
    Francois Trible
    165 Posts

    Re: deployed app not working

    ‏2010-05-05T15:57:47Z  
    Maybe the two tomcat configurations are different - The exception shown makes me think you have a tomcat in "non headless mode" for which there is no X-Window driver running on the machine (cf http://wiki.apache.org/tomcat/FAQ/Linux_Unix).

    Depending on your OS, Java and Tomcat version, there are different ways to run Tomcat in headless mode, for example adding "JAVA_OPTS-Djava.awt.headless=true" on top of your catalina.sh file.