Unix Server JFree chart creation Failed -Weblogic Server

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Saravanan
Posts: 1
Joined: Thu Mar 04, 2010 3:10 pm
antibot: No, of course not.

Unix Server JFree chart creation Failed -Weblogic Server

Post by Saravanan » Thu Mar 04, 2010 4:39 pm

Hi,

I am using weblogic server 10.0 in Unix environment. In windows my application working fine and rendered JFree chart fine. But in Unix it throws the following error.
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1141)
at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1408)
at org.jfree.chart.ChartUtilities.writeChartAsJPEG(ChartUtilities.java:426)
at org.jfree.chart.ChartUtilities.writeChartAsJPEG(ChartUtilities.java:380)

I already set java.awt.headless =true, but still i got this exception. In Unix i am using JDK version : 1.5.0_14. I tried to get GraphicsEnvironment using the following code in UNIX. It also give font array length without any error.
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
Font font[] = ge.getAllFonts();
logger.info("Font length-->"+font.length);

Can you help me on this?

Thanks
S.Saravanan

Locked