We developed a report with a sub-report. We move the parent .jasper report and the child (sub-report) .jasper report into our Spring Boot Project resource folder. When we run our application locally, our report appears perfectly. When we deploy the project to the cloud, when we run the report we get an error: net.sf.jasperreports.engine.JRException: Resource not found at: H2_Quote_Print_Groups.jasper. at net.sf.jasperreports.repo.RepositoryUtil.getResourceFromLocation(RepositoryUtil.java:158) at net.sf.jasperreports.repo.RepositoryUtil.getReport(RepositoryUtil.java:117) at net.sf.jasperreports.engine.fill.JRFillSubreport.loadReport(JRFillSubreport.java:477) H2_Quote_Print_Groups.jasper is our sub-report. So it found the parent report, but cannot find the child. How do we get the parent report to recognize the sub-report in the deployed .jar file in the cloud? We saw some other posts talk about $P{SUBREPORT_DIR}, but we aren't sure how to obtain that sub-report location in a deployed application. Our Kotlin code: fun callJasperReports(reportDataObject: Any, reportName: String, jasperParameters: HashMap<String?, Any?>, response: HttpServletResponse){ val servletOutputStream = response.outputStream val bytes: ByteArray? try { val rawJsonData = objectMapper.writeValueAsString(reportDataObject) val jsonDataStream = ByteArrayInputStream(rawJsonData.toByteArray()) val jsonDataSource = JsonDataSource(jsonDataStream) val parentReport = ClassPathResource("jasper_reports/$reportName.jasper").inputStream bytes = JasperRunManager.runReportToPdf( parentReport, jasperParameters, jsonDataSource ) response.contentType = "application/pdf" response.setContentLength(bytes!!.size) servletOutputStream.write(bytes, 0, bytes.size) servletOutputStream.flush() servletOutputStream.close() } catch (e: JRException) { // display stack trace in the browser val stringWriter = StringWriter() val printWriter = PrintWriter(stringWriter) e.printStackTrace(printWriter) response.contentType = "text/plain" response.outputStream.print(stringWriter.toString()) }}[/code]