Jasper Report Viewer working from IDE (Eclipse), but when deployed WAR to tomcat server and run web applications from tomcat, report viewer doesn't come up. Even I can't see any error in log or on screen. Please help
My code is below.
HashMap hm = new HashMap(); String reportUrl = "/reports/contact2.jasper"; InputStream jasperStream = getClass().getResource(reportUrl).openStream() ; JasperPrint jprint = JasperFillManager.fillReport(jasperStream, hm, new JREmptyDataSource(1)); JasperViewer.viewReport(jprint, false);
No answers yet