I am working with a simple line chart on a web application (with Jasper Reports and Netbeans (jsf)); using JasperStudio I have created this report and on Preview it shows good. Then I compile it and copy the ".jrxml" and ".jasper" files to my project. When I run this report I have this message:
java.lang.ClassCastException: org.jfree.chart.axis.NumberTickUnitSource cannot be cast to org.jfree.chart.axis.TickUnits
It says the NumberTickSource cannot be cast to TickUnits. I tryed changing the libraries jcommon, jfreechart, servlet but nothing works, any idea?
Note: When I run this report on the web I use the ".jasper" file, reports without charts works fine. Thanks!