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/
Caused by: java.lang.
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 )
Hi Srimal,
ReplyDeleteWhat I am going to ask i not related to your post, maybe a bit.
As I know, if we want report contain chart, we can design it using iReport. I have passed it. However, how I want to run chart.jasper from my webapp to pdf...
Fyi, I had googling enough, but nothing suit my problem. I hope you can give source code or any link for solution to my problem.
Azizi Yazit
Hi, i have everything setup. Even the jasper report output can be seen from ireport. I compiled the jarxml file from ireport to jasper and used it by putting inside the web-app/reports directory but the pdf output contains nothing. Do you include database query inside the jarxml file or do you provide it from the .list(). Obviously you do it from grails i hope. Do you have to use any datasource or anything in jarxml then. I did not find any source code anywhere for grails that did that. So would you please upload the sourcecode anywhere or send me. Thank You
ReplyDeleteHey!! I am looking for the same issue. this worked out. Thanks !!
ReplyDeleteThanks..
ReplyDeleteNice Post..
I have this problem..