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
java.lang.NoClassDefFoundError: org/jfree/ui/Spacer exceptio
-
- Posts: 25
- Joined: Mon Oct 08, 2007 7:16 am
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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.
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.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
![Idea :idea:](./images/smilies/icon_idea.gif)
![Idea :idea:](./images/smilies/icon_idea.gif)
-
- Posts: 2
- Joined: Fri Jul 17, 2009 6:34 pm
Re: java.lang.NoClassDefFoundError: org/jfree/ui/Spacer exceptio
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?
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?