zulidris Posted August 16, 2006 Share Posted August 16, 2006 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 More sharing options...
rimmeraj Posted August 31, 2006 Share Posted August 31, 2006 add commons-javaflow-20060411.jar to the lib dir. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now