Jump to content
Changes to the Jaspersoft community edition download ×

java.lang.NoClassDefFoundError: JRHorizontalFiller


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;




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

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

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

jasperPrint =




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...