I found code to produce a report via java code and thought this would be easily possible but found too many errors occurring. I am able to create a report from a template using the normal procedural steps but programmatically it fails. This is critical as i need to be able to query the DB and render the reports automatically on a schedule. JRResultSetDataSource rsdt=new JRResultSetDataSource(rs); JasperReport jrpt = JasperCompileManager.compileReport("C:\Users\mmm\Documents\workspace-sts-webapps\HelloJasper\firstReport.jrxml"); //InputStream is=this.getClass().getResourceAsStream("firstReport.jrxml"); //jrpt = JasperCompileManager.compileReport(is); JasperPrint jp = JasperFillManager.fillReport(jrpt, new HashMap(), rsdt); JasperViewer jv = new JasperViewer(jp); jv.setVisible(true); [/code] Now when I actually add the report first using one of the templates, I get another error: