Error when using jasper reports in Servlets

Hi

Iam new to Jasper reports..Iam trying to fill my report with data..but it keeps giving me the following error..


java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/fill/JRHorizontalFiller
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)


but the class is present


This a code excerpt:
<code>

Map params = new HashMap();
params.put("Report_Name","Access Report");
String inputFile ="C:\\Jasper\\Access.jrxml";

JasperReport jasperReport = JasperManager.compileReport(inputFile);
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, params, new NDataSource() );


</code>

NDataSource is my dataSource...it Implements JRDataSource



The input file is in c:->jasper Folder


Iam using MyEclipse Version: 3.1.2 and Jboss 4.0

I have attached my Jasper Report [file name=Access.jrxml size=3742]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Acc...
Post edited by: divsen, at: 2006/08/25 23:31
divsen's picture
856
Joined: Aug 22 2006 - 6:02am
Last seen: 17 years 1 month ago

2 Answers:

Do you have the Commons Javaflow jar on your classpath?

HTH,
Lucian
lucianc's picture
87579
Joined: Jul 17 2006 - 1:10am
Last seen: 1 hour 41 min ago
i added the jar file and it is working..

Thank you very much..
divsen's picture
856
Joined: Aug 22 2006 - 6:02am
Last seen: 17 years 1 month ago
Feedback
randomness