Jump to content
Changes to the Jaspersoft community edition download ×

Error when using jasper reports in Servlets


divsen

Recommended Posts

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/Access.jrxml[/file]

Post edited by: divsen, at: 2006/08/25 23:31

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...