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:
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);
Earlier versions of JasperReport use DOCTYPE. Newer versions use XMLNS. When you opened your .JRXML, the iReport saved it using XMLNS and removed previous DOCTYPE tag, at the beginning of document. Update your Jasper JARS version, or save your JRXML as older version.