ConcourseSuite Support

Support
Corporate
PUBLIC PROFILE

Back to topics

Discuss Pipeline Management

Pipeline screen doesn't work on Linux - Solution

You need to be logged in to post messages

Pipeline screen doesn't work on Linux - Solution

10/17/2004 12:12 PM EDT

Hi,

I ran into a problem where i couldn't run Centric on tomcat/linux because i was getting errors of the following sort:

The issue is that jfreechart uses 2D graphics functions from the AWT that rely on native graphics libraries. On unix, these libraries want to connect to the local X11 server to execute properly. I took the PJA route, but another one worth mentioning (for JDK 1.4) is simply setting the system property java.awt.headless to true. (You can do this externally by adding -Djava.awt.headless=true in the tomcat startup.sh script.)

The following URL summarizes several workarounds:

http://www.jfree.org/phpBB2/viewtopic.php?t=1012

The full exception follows (for those searching for this error)

Caused by: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Font.initializeFont(Font.java:308)
at java.awt.Font.<init>(Font.java:344)
at com.jrefinery.chart.AxisConstants.<clinit>(Unknown Source)
at com.jrefinery.chart.VerticalNumberAxis.<init>(Unknown Source)
at org.aspcfs.modules.pipeline.actions.Leads.executeCommandDashboard(Unknown Source)

1. 10/17/2004 12:14 PM EDT

FYI, i tried the -D"java.awt.headless=true" option, and it works just fine...with the added advantage that image creation is done with the native graphics library code for improved performance

2. 10/19/2004 8:49 AM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

That's correct. This is also mentioned in the readme.txt file that is included in the download, in a slightly different way:

"specify the environment variable CATALINA_OPTS=-Djava.awt.headless=true on Linux/Unix."

3. 10/19/2004 12:01 PM EDT

What, you have to read the documentation?!?!? :)

Thanks

4. 6/11/2005 12:11 AM EDT

Ok,
My environment has this variable set:
CATALINA_OPTS=-Djava.awt.headless=true -Xmx128M -Xms128M -Djava.util.prefs.userRoot=/var/lib/tomcat4/conf

My ps shows the following process running for Tomcat:
/usr/lib/j2sdk1.4-sun//bin/java -Djava.awt.headless=true -Xmx128M -Xms128M -Djava.util.prefs.userRoot=/var/lib/tomcat4/conf -Djava.endorsed.dirs=/usr/share/tomcat4/common/endorsed -classpath /usr/lib/j2sdk1.4-sun//lib/tools.jar:/usr/lib/j2sdk1.4-sun//jre//lib/jcert.jar:/usr/lib/j2sdk1.4-sun//jre//lib/jnet.jar:/usr/lib/j2sdk1.4-sun//jre//lib/jsse.jar:/usr/share/tomcat4/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat4 -Dcatalina.home=/usr/share/tomcat4 -Djava.io.tmpdir=/var/lib/tomcat4/temp org.apache.catalina.startup.Bootstrap start

But, centric still comes up with this error.
Apache Tomcat has not been configured to render graphics on this system. The following line needs to be added to Apache Tomcat's bin/catalina.sh:

CATALINA_OPTS=-Djava.awt.headless=true

What's the deal?
I don't see any errors in my logs. Where should I start troubleshooting this?

5. 6/15/2005 2:03 PM EDT

Hi all,

I've got the same problem on windows.

Any ideas?

Cheers,
Francisco

6. 6/15/2005 5:47 PM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

You might also look into directory permissions in Tomcat's webapps/centric/ as files get created there for the pipeline dashboard.

7. 6/15/2005 5:48 PM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

Also, make sure you are using either:

Tomcat 5.0 + Java 1.4
or
Tomcat 5.5 + Java 1.5 (5.0)

7 results found