I have designed jasper report using iReport version (4.7.1). Through iReport it works fine. When I called from java servlet, I get an error:
iReport
Err
Assuming that the jrxml file has been added to your jar file, you should load it like this:
InputStream is = ReportServlet.class.getResourceAsStream(themeDesignName); jasperDesign = JRXmlLoader.load(is);