jin Posted January 10, 2007 Share Posted January 10, 2007 Hello, when I compile jrxml template with my method I get XML parser exception. org.xml.sax.SAXParseException (External entity not found: "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd".) The parser is triing get DTD from internet. How can I tell compiler not to do that? Thanx for help. Jin Using:- Jasper 1.3.0-JDK 1.4.2 My method: Code:private void compileReportToFile2 ( File xmlFile) throws SiraelException { try { JasperCompileManager.compileReportToFile (xmlFile.getAbsolutePath ()); } catch ( JRException jrexc) { throw new SiraelException ( jrexc ); }} Link to comment Share on other sites More sharing options...
jin Posted January 10, 2007 Author Share Posted January 10, 2007 Solved. It was because it searched DTD in another one classLoader. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now