Including jasper reports in your grails application is trivial with the
jasper grails plugin.However, if you need to include a 'chart' in your jasper report, grails complains about a missing jfreechart lbrary ...
I get the error,
----------------------------
Grails Runtime Exception
Error Details
Message: org/jfree/chart/plot/
PlotOrientation
Caused by: java.lang.NoClassDefFoundError: org/jfree/chart/plot/PlotOrientation
Class: JasperService
At Line: [92]
This is because it can't find the jfreechart library required by jasper reports to create the chart.
The following solution worked for me.
Obtain jfreecharts from
http://www.jfree.org/
and the copy the following lib files found in the doanloaded jfreecharts archive'slib dir to the grails lib dir.
jcommon-1.0.14.jar jfreechart-1.0.11.jar
(i got the latest versions and it works with grails 1.0.3 )