i need to print a report from a servlet. I am using this line of code: JasperRunManager.runReportToPdfStream(reportStream, servletOutputStream, parameters, provaDataSource); Everything is OK when i print my report. But if add a subreport i always recieve the error: "Could not load object from location : .Prova_3_subreport0.jasper". I put the Prova_3_subreport0.jrxml as a resource but it still doesn't work. If somebody could help me it would be very appreciated. Thanks