In my project I have stored .jrxml files in a package called com/bio/ofm/mnu/views/reports/jasperReports/ When I try to load a .jrxml I get following error,
net.
i'm compiling my reports like that:
ByteArrayInputStream is = MyRenderer.class.getClassLoader().getResourceAsStream("anytemplate.jrxml");
JasperDesign jasperDesign = JRXmlLoader.load(is);
JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
When loading the file as a stream like below it worked,
InputStream in = this.getClass().getClassLoader().getResourceAsStream("com/bio/ofm/mnu/views/reports/jasperReports/repAuditReport.jrxml");
JasperReport report = JasperCompileManager.compileReport(in);