2005 IR Help Posted August 27, 2006 Share Posted August 27, 2006 By: Kevin C. Dorff - kdorff cannot loadXmlDesign : no route to external 2004-09-23 14:21 I am new to JasperReports and am having a problem I thought there woudl be a solution to that others would be mentioning, but, I apparently am alone in this. I created a report using iReport, it runs fine from iReport. In my java code I am JasperDesign jasperDesign = JasperManager.loadXmlDesign("reportfile.jrxml"); Note: I am behind a prive network. When I execute this line it it sites there for about 30+ seconds and then comes back with Sep 23, 2004 3:19:27 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 3 column -1: External entity not found: "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd". java.net.NoRouteToHostException: No route to host: connect at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376) at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:3064) at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1347) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:656) at org.apache.crimson.parser.Parser2.parse(Parser2.java:337) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:400) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:384) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:338) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:322) at net.sf.jasperreports.engine.JasperManager.loadXmlDesign(JasperManager.java:1020) at OgnlTest.main(OgnlTest.java:57) This seems odd to me. Somebody mentioned elsewhere in this formun that JasperReports (or Digester) would not be going out on the network to read DTDs but would read them from the JAR file, but, it doesn't appear this is the case. Suggestions? Seems like this should be a FAQ but I don't see it as such. What am I missing? Kevin 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