Jump to content
We've recently updated our Privacy Statement, available here ×

java.lang.NoClassDefFoundError: JRHorizontalFiller


zulidris

Recommended Posts

I am trying out JasperReports 1.2.5 inside JBoss 4.0.3.

 

Whenever I execute the servlet, I am getting this error : java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/fill/JRHorizontalFiller

 

 

My code snippet is below.

 

File reportFile = new File(context.getRealPath("/reports/test.jasper"));

if (!reportFile.exists())

throw new JRRuntimeException("File test.jasper not found. The report design must be compiled first.");

 

Map parameters = new HashMap();

JasperPrint jasperPrint = null;

 

try

{

System.out.println("Loading report");

JasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile.getPath());

System.out.println("Filling report");

jasperPrint =

JasperFillManager.fillReport(

jasperReport,

parameters,

new JREmptyDataSource()

);

 

Any help is much appreciated.

Link to comment
Share on other sites

  • 3 weeks later...
  • Replies 1
  • 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...