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)