NoClassDefFoundError « Development « JFreeChart Q&A





1. createTimeSeriesChart: NoClassDefFoundError - Help!    jfree.org

Hi I have the following problem when I run JFreechart in Tomcat on Solaris (it works fine on Windows) using JDK 1.4. I am using 0.9.21 versions of both jcommon and jfreechart jars. java.lang.NoClassDefFoundError at org.jfree.chart.ChartFactory.createTimeSeriesChart(ChartFactory.java:1436) (Funny it doesn't say which class is missing) I checked the jars and they have all the classes used in the createTimeSeriesChart method. Before this, ...

2. java.lang.NoClassDefFoundError    jfree.org

Hello !! W have a very strange problem. We have two machines with same Linux SO, same tomcat version 5.0.28 and same JVM. One machine works correctly and another doesn't work, the error is with the same page: ################# Error ########################## Estado HTTP 500 - -------------------------------------------------------------------------------- type Informe de Excepcin mensaje descripcin El servidor encontr un error interno () que hizo ...

3. java.lang.NoClassDefFoundError:    jfree.org

4. java.lang.NoClassDefFoundError    jfree.org

Hi, I am getting the following error when i try to accesss the application based on jfreechart in UNIX system. The same application is running without any error in windows XP. The error i am getting is java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) at java.awt.Font.initializeFont(Font.java:309) at java.awt.Font.(Font.java:345) at org.jfree.chart.axis.Axis.(Axis.java:127) at com.verizon.vnm.common.report.chart.builder.StackedBarChartBuilder.createStackedBarChart(StackedBarChartBuilder.java:84) at com.verizon.vnm.common.report.chart.builder.StackedBarChartBuilder.buildChart(StackedBarChartBuilder.java:48) at com.verizon.vnm.common.report.tag.StackedBarChartTag.doEndTag(StackedBarChartTag.java:35) at jsp_servlet._resources._common._jsp.__ivcexecutivereport._jspService(__ivcexecutivereport.java:2903) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) ...

5. java.lang.NoClassDefFoundError unidentified    jfree.org

Hello, I have a web application under a server Linux RH, Java(TM) 2 Runtime Enviroment, Standard Edition (build 1.5.0_04-b05) and Tomcat 5.5.9 and I use jfreechart 1.0.0 and jcommon 1.0.0 to create the graphics All my jsp's pages work fine but some of them have a link to another jsp wich should show an image created using ChartUtilities.saveChartAsPNG method (in the ...

6. java.lang.NoClassDefFoundError    jfree.org

Tring to run Richard Atkinson's war file after installing all jfree charts jar files and running tomcat headless. I get different errors on each, but here is the first one. java.lang.NoClassDefFoundError: org.jfree.chart.axis.Axis at org.jfree.chart.demo.servlet.WebHitChart.generateBarChart(WebHitChart.java:61) at org.apache.jsp.bar_chart_jsp._jspService(bar_chart_jsp.java:69) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at ...

7. NoClassDefFoundError while running JFreeChart generation    jfree.org

NoClassDefFoundError while running JFreeChart generation by Doan Du Thu Jan 19, 2006 12:43 pm Dear all, I am developing an enterprise app on WebLogic 8.1.2. The app uses JFreeChart 0.9.21 to generate charts which are embedded to a pdf file and response to user's request. When I deployed this app on WebLogic 8.1.2, Wintel platform, it worked fine. When I ...

8. NoClassDefFoundError problem    jfree.org

Hi everybody, I had the above error when running JFreeChart on a machine. I have verified my classpath and the JAR files are all correctly set. Also, i have been following some threads about problems with X11 that might cause this. I believe i could opt to use PJA to solve it... Can you tell me what is the best to ...

9. java.lang.NoClassDefFoundError on run    jfree.org

I am new to JFreeChart and am having a problem running my program to generate a 3D clustered barchart in eclipse. Program compiles fine, but when I run the program [java ]I get the following error. C:\eclipse\workspace\flexlmDenialGrapher>java flexlmDenialGrapher Exception in thread "main" java.lang.NoClassDefFoundError: org/jfree/ui/ApplicationFrame at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at ...





10. java.lang.NoClassDefFoundError: org/jfree/chart/axis/ValueAx    jfree.org

Hi, I am running JFreeChart 1.0.0 headless and I'm trying to create a CombinedDomainCategory chart. I'm trying to use the class org/jfree/chart/axis/ValueAxis but receives an java.lang.NoClassDefFoundError just by importing this class. I have tried both JFreeChart 1.0.0 and 1.0.1 and gets the same error message. I'm running headless by setting: System.setProperty("java.awt.headless", "true"); Anyone have a clue about this? /Anders The complete ...

11. NoClassDefFoundError: org/jfree/ui/ExtensionFileFileFilter    jfree.org

The "ChartPanel" class has to start with an upper-case character (as JFreeChart follows the common coding style recommendation for Java). Especially when working with Windows, you have to be aware that Java *is* case sensitive (while Windows isnt). Depending on the tools you use, such errors might hit you at any time (usually when you expect them least). Regards, Thomas

13. java.lang.NoClassDefFoundError    jfree.org

java.lang.NoClassDefFoundError by Flying Tue Aug 08, 2006 5:47 pm I have this error: Code: Select all [8/8/06 19:04:45:342 EEST] 00000075 SystemErr R java.lang.NoClassDefFoundError: org/jfree/chart/axis/DateAxis at org.jfree.chart.ChartFactory.createTimeSeriesChart(ChartFactory.java:1678) at com.mycompany.clientcentre.chart.generator.TimeSeriesChartGenerator.createChart(TimeSeriesChartGenerator.java:48) at com.mycompany.clientcentre.chart.ChartManager.createChart(ChartManager.java:93) at com.mycompany.portlet.mvc.ClientCentreController.createChartImages(ClientCentreController.java:185) at com.mycompany.portlet.mvc.ClientCentreController.handleRenderRequestInternal(ClientCentreController.java:101) at org.springframework.web.portlet.mvc.AbstractController.handleRenderRequest(AbstractController.java:204) at org.springframework.web.portlet.mvc.SimpleControllerHandlerAdapter.handleRender(SimpleControllerHandlerAdapter.java:46) TimeSeriesChartGenerator.java line #48 is below: Code: Select all //imports section import org.jfree.chart.ChartFactory; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.title.TextTitle; ...

16. NoClassDefFoundError: org/jfree/chart/ChartPanel    jfree.org

I just switched from jcommon-1.0.0.jar and jfreechart-1.0.1.jar to jcommon-1.0.6.jar and jfreechart-1.0.3.jar. While I do not get any errors when compiling my application, I am now getting "NoClassDefFoundError: org/jfree/chart/ChartPanel" when I run the application. Nothing has changed in the source, and it looks as if the class file is just missing from the jar. Anyone having the same issue? I will just ...





17. java.lang.NoClassDefFoundError: org/jfree/data/general/Value    jfree.org

Hey guys! Got an problem in my web application - when I try to generate a MeterPlot (from my Servlet) I get the following message: java.lang.NoClassDefFoundError: org/jfree/data/general/ValueDataset The whole thing worked fine in an offline version - didn't get any exceptions there. I am working with Eclipse 3.2.1 (with wtp - webToolProject Version 1.5.2) on a Windows XP (SP2) machine, tomcat ...

18. NoClassDefFoundError    jfree.org

19. NoClassDefFoundError on "First" example    jfree.org

I am just beginning to use JFreeChart: Installed the jfreechart-1.0.3, purchased the "jfreechart-1.0.3-US.pdf" Developer Guide and began experimenting. Running the "demo" with "java -jar jfreechart-1.0.3-demo.jar" was no problem. But then I have made the "First.java" (copied from page 39 of the Guide), compiled it with $JAVA_HOME/bin/javac \ -classpath $JFClib/jfreechart-1.0.3.jar:$JFClib/jcommon-1.0.6.jar FirstPie.java (where the JAVA_HOME pointed to my jdk1.5.0_10 directory and JFClib pointed ...

20. java.lang.NoClassDefFoundError on AIX    jfree.org

I know this has been mentioned in some places before, but non of the solutions mentioned work for me. So here goes i've been trying to run JFreeChart on an application running on Websphere on AIX. i get an error something like this java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: org/jfree/chart/axis/CategoryAxis at org.jfree.chart.ChartFactory.createBarChart(ChartFactory.java(Compiled Code)) whereas the same application works perfectly fine on the windows. i think ...

21. java.lang.NoClassDefFoundError in eclipse RCP    jfree.org

Hi, I'm hoping someone can help me. I am testing the use of JFreeChart for use in an eclipseRCP app, but kept getting NoClassDefFound errors in the View I was trying to render it in; even though running as a standalone bean the code worked fine. To remove our target platform from being a concern I have built a brand new ...

23. NoClassDefFoundError    jfree.org

Hi! I am trying to open a chart and I have included the freechart, common, servlet, and gnu jar files to my class path. I don't get any compile errors, but at run-time, I get: Exception in thread "main" java.lang.NoClassDefFoundError: org/jfree/data/time/RegularTimePeriod I have the correct versions of the jar files, copied from jfreechart-1.0.5/lib. By the way, I am on a solaris ...

24. java.lang.NoClassDefFoundError: org/w3c/dom/DOMError    jfree.org

Guys, I am getting an error which says: java.lang.NoClassDefFoundError:(Unknown Source)org/w3c/dom/DOMError at org.apache.batik.dom.GenericDOMImplementation.createDocument below is the code: try { // SVG Code Begins from here // Get a DOMImplementation DOMImplementation domImpl = GenericDOMImplementation .getDOMImplementation(); // Create an instance of org.w3c.dom.Document Document document = domImpl.createDocument(null, "svg", null); // Create an instance of the SVG Generator SVGGraphics2D svgGenerator = new SVGGraphics2D(document); // Set the ...

25. java.lang.NoClassDefFoundError    jfree.org

I have a similar problem: Using Apache with jserv and jdk 1.3 in HP-UX When I try to use any method of ChartFactory to create a graph, it halts the execution and sends only an error that is "NoClassDefFoundError" Again running locally in Tomcat, works fine. Have you solved it? Please Help me.

26. java.lang.NoClassDefFoundError: org/jfree/chart/renderer/xy/    jfree.org

I am trying to embed a JFreeChart applet inside an html page. The applet loads in the Eclipse appletviewer but will not load from running the html page. Here is the full error: java.lang.NoClassDefFoundError: org/jfree/chart/renderer/xy/XYItemRenderer at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown ...

27. java.lang.NoClassDefFoundError Tomcat 5.5    jfree.org

Hi there.. I have a problem with de JFreeChart. Tomcat send me an error java.lang.NoClassDefFoundError First copied the jars in TOMCAT_HOME\common\lib and the error persist then copied the jars in TOMCAT_HOME\shared\lib and nothing happens to resolve the error Finally add the jars in the classpath and the error keep it I use Windows XP Professional, tomcat 5.5 and jre1.6.0_02 I appreciate ...

29. NoClassDefFoundError only in shared hosting environment    jfree.org

Hi, I am trying get the jfreechart 1.0.9 working on Tomcat 5.0.27 with JDK 1.5 both on my development and remote shared hosting environment. For some reason I get error whenever I try to run the following statement on the hosting environment: ChartUtilities.writeChartAsPNG(response.getOutputStream(), chart, 800, 600); It is working just fine in my development environment. My development environment is identical to ...

31. NoClassDefFoundError    jfree.org

33. NoClassDefFoundError: org.jfree/data/time/RegularTimePeriod    jfree.org

Hi, sorry for asking this question. I do have a WebApp using JFreechart v.13. In my dev env it runs fine, but not in my prod env. What I wonder most is the error message which occurs at startup time: 2009-08-29 11:52:06 StandardContext[/jserv]Marking servlet ChartDisplayWrapper as unavailable 2009-08-29 11:52:06 StandardContext[/jserv]Servlet /jserv threw load() exception javax.servlet.ServletException: Error instantiating servlet class org.igl.util.charts.ChartDisplayWrapper at ...

34. java.lang.NoClassDefFoundError: org/jfree/ui/Drawable    jfree.org

I am using WebSphere v5. I created a simple servlet called TestPie. It worked fine on my local machine running Tomcat. But now that I have deployed it on my development server, I get this error. Does anyone know why? [Servlet Error]-[org/jfree/ui/Drawable]: java.lang.NoClassDefFoundError: org/jfree/ui/Drawable at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code)) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:381) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code)) ...