Page 1 of 1

java.lang.NoClassDefFoundError: org/jfree/ui/Spacer exceptio

PostPosted: Fri Aug 18, 2006 8:17 am
by arumugam
HI,
I'm trying to use JFreeReport in a application with Jboss 4.0.0
I'm using the same librairies that the example found on jfree.org

i get an exception like
java.lang.NoSuchMethodError: org.jfree.base.log.DefaultLog.installDefaultLog()V
org.jfree.report.JFreeReportBoot.getInstance(JFreeReportBoot.java:234)

i'm using jfreereport-0.8.7-5 and jcommon-1.1.0 . through these forum i found that the problem was multiple copies of jcommon in the classpath.
i removed an older version of jcommon(0.9.6).but now my existing n functional jfree chart(0.9.21) applications requires the older version of jcommon.(i think)

i now get an exception like java.lang.NoClassDefFoundError: org/jfree/ui/Spacer
could anyone help me get around this problem
thanks

PostPosted: Mon Oct 08, 2007 7:30 am
by mahesh_burgu
hi,
even i have the same problem.....did u get any solution....if so please help me out

PostPosted: Thu Nov 15, 2007 11:36 am
by david.gilbert
If you are using a version of JFreeChart that is older than 1.0.0, then you'll need to make sure you use the version of JCommon that shipped with JFreeChart (others *might* work, but sometimes don't).

Starting with JFreeChart 1.0.0, things are much simpler: JFreeChart 1.0.x will work with any version of JCommon from 1.0.0 onwards. I recommend that you use the latest JCommon (1.0.12) but things should still work with any 1.0.x version.

Re: java.lang.NoClassDefFoundError: org/jfree/ui/Spacer exceptio

PostPosted: Fri Jul 17, 2009 8:11 pm
by halissonmartins
Hi, I'm using jboss-3.2.5, jfreechart-1.0.10 and jcommon-1.0.13, them having the same exception.

I allread looked this post, so I decide to search if I have another Jar in the classpath.
In my search, I found another Jars in console-mgr.sar (jfreechart.jar - 1.0, jcommon.jar - 1.0).

I'm thinking that those Jars in console-mgr.sar are having conflict whith the Jars in my aplication, but I'm not sure if I must have to remove the console-mgr.sar of my Jboss to resove this problem.

Someone can help-me?