Hello, I have a peculiar problem. When I generate my pdf report this way: Map params = new HashMap(); Document document = JRXmlUtils.parse(new InputSource(this.getClass().getResourceAsStream("container.xml"))); params.put(JRXPathQueryExecuterFactory.PARAMETER_XML_DATA_DOCUMENT, document); JasperRunManager.runReportToPdfFile("D:/dev/projects/lafrance/output/cumul/src/WEB-INF/jasper/warehouseReport.jasper", params); The report generates fine. But when I use the following to generate it: Document document = JRXmlUtils.parse(new InputSource(this.getClass().getResourceAsStream("container.xml"))); JRXmlDataSource dataSource = new JRXmlDataSource(document); JasperRunManager.runReportToPdfFile("D:/dev/projects/lafrance/output/jasper/warehouseReport.jasper", new HashMap(), dataSource); My report has no data in it (all the fields are null or blank). When I debug the second piece of code, I see that before the runReportToFile method is launched, the document is correctly loaded. Any ideas? Thanks François