Jump to content

compilation error - doesn't see dtd


Recommended Posts

By: Kobi Joseph - sourcesoso

compilation error - doesn't see dtd

2003-09-15 04:11

15.09.2003 14:38:29

I'm using JasperReports 0.5.0.

Trying to load XML and compile:

 

JasperDesign jasperDesign = JasperManager.loadXmlDesign("./test.xml");

jasperReport = JasperManager.compileReport(jasperDesign);

 

When I'm trying to coplile the project error occures:

 

 

org.apache.commons.digester.Digester warning

 

SEVERE: Parse Warning at line 1 column 0: URI was not reported to parser for entity [document]

 

org.xml.sax.SAXParseException: URI was not reported to parser for entity [document]

 

at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)

 

at gnu.xml.aelfred2.SAXDriver.startExternalEntity(SAXDriver.java:631)

 

at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3358)

 

at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:159)

 

at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)

 

at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)

 

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

 

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

 

at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1017)

 

at communal.soso.myJasperReport.<init>(myJasperReport.java:49)

 

at communal.soso.myJasperReport.main(myJasperReport.java:119)

 

15.09.2003 14:38:29 org.apache.commons.digester.Digester warning

 

SEVERE: Parse Warning at line 3 column 124: No base URI; hope URI is absolute: http://jasperreports.sourceforge.net/dtds/jasperreport.dtd

 

org.xml.sax.SAXParseException: No base URI; hope URI is absolute: http://jasperreports.sourceforge.net/dtds/jasperreport.dtd

 

at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)

 

at gnu.xml.aelfred2.XmlParser.readExternalIds(XmlParser.java:2399)

 

at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:804)

 

at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:522)

 

at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:414)

 

at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)

 

at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)

 

at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)

 

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

 

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

 

at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1017)

 

at communal.soso.myJasperReport.<init>(myJasperReport.java:49)

 

at communal.soso.myJasperReport.main(myJasperReport.java:119)

 

15.09.2003 14:38:29 org.apache.commons.digester.Digester warning

 

SEVERE: Parse Warning at line 3 column 126: No base URI; hope this SYSTEM id is absolute: http://jasperreports.sourceforge.net/dtds/jasperreport.dtd

 

org.xml.sax.SAXParseException: No base URI; hope this SYSTEM id is absolute: http://jasperreports.sourceforge.net/dtds/jasperreport.dtd

 

at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)

 

at gnu.xml.aelfred2.SAXDriver.absolutize(SAXDriver.java:606)

 

at gnu.xml.aelfred2.SAXDriver.resolveEntity(SAXDriver.java:585)

 

at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3336)

 

at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:845)

 

at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:522)

 

at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:414)

 

at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)

 

at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)

 

at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)

 

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

 

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

 

at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1017)

 

at communal.soso.myJasperReport.<init>(myJasperReport.java:49)

 

at communal.soso.myJasperReport.main(myJasperReport.java:119)

 

15.09.2003 14:38:30 org.apache.commons.digester.Digester warning

 

SEVERE: Parse Warning at line 3 column 126: URI was not reported to parser for entity [dtd]

 

org.xml.sax.SAXParseException: URI was not reported to parser for entity [dtd]

 

at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)

 

at gnu.xml.aelfred2.SAXDriver.startExternalEntity(SAXDriver.java:631)

 

at gnu.xml.aelfred2.SAXDriver.resolveEntity(SAXDriver.java:591)

 

at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3336)

 

at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:845)

 

at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:522)

 

at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:414)

 

at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)

 

at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)

 

at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)

 

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

 

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

 

at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1017)

 

at communal.soso.myJasperReport.<init>(myJasperReport.java:49)

 

at communal.soso.myJasperReport.main(myJasperReport.java:119)

 

15.09.2003 14:38:30 org.apache.commons.digester.Digester warning

 

SEVERE: Parse Warning at line 3 column 126: missing system ID, using http://jasperreports.sourceforge.net/dtds/jasperreport.dtd

 

org.xml.sax.SAXParseException: missing system ID, using http://jasperreports.sourceforge.net/dtds/jasperreport.dtd

 

at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)

 

at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3348)

 

at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:845)

 

at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:522)

 

at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:414)

 

at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)

 

at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)

 

at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)

 

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

 

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

 

at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1017)

 

at communal.soso.myJasperReport.<init>(myJasperReport.java:49)

 

at communal.soso.myJasperReport.main(myJasperReport.java:119)

 

org.xml.sax.SAXParseException: URI was not reported to parser for entity [document]

 

at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)

 

at gnu.xml.aelfred2.SAXDriver.startExternalEntity(SAXDriver.java:631)

 

at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3358)

 

at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:159)

 

at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)

 

at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)

 

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

 

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

 

at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1017)

 

at communal.soso.myJasperReport.<init>(myJasperReport.java:49)

 

at communal.soso.myJasperReport.main(myJasperReport.java:119)

 

 

NESTED BY :

 

org.xml.sax.SAXParseException: URI was not reported to parser for entity [document]

 

at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)

 

at gnu.xml.aelfred2.SAXDriver.startExternalEntity(SAXDriver.java:631)

 

at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3358)

 

at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:159)

 

at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)

 

at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)

 

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

 

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

 

at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1017)

 

at communal.soso.myJasperReport.<init>(myJasperReport.java:49)

 

at communal.soso.myJasperReport.main(myJasperReport.java:119)

 

 

NESTED BY :

 

dori.jasper.engine.JRException: URI was not reported to parser for entity [document]

 

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:397)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

 

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

 

at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:1017)

 

at communal.soso.myJasperReport.<init>(myJasperReport.java:49)

 

at communal.soso.myJasperReport.main(myJasperReport.java:119)

 

Caused by: org.xml.sax.SAXParseException: URI was not reported to parser for entity [document]

 

at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)

 

at gnu.xml.aelfred2.SAXDriver.startExternalEntity(SAXDriver.java:631)

 

at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3358)

 

at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:159)

 

at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)

 

at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)

 

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

 

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

 

 

What can I do to fix the problem? By the way can I use the dtd-file on my local computer, not the one on jasper web-site? If so how can I do that?

 

Thanks!!!

 

 

 

 

By: Daniel B. M. - danielbrocco

RE: compilation error - doesn't see dtd

2003-09-15 05:36

Try this:...

 

First have sure you set your properties like this

 

System.setProperty("org.xml.sax.driver", "org.apache.xerces.parsers.SAXParser");

 

to use the dtd-file in local computer, just modify your xml file in the tag to this example:

 

<!DOCTYPE jasperReport SYSTEM "file:///c:jasperreport.dtd">

 

save and after copy the files "jasperprint.dtd" and "jasperreport.dtd" located in "docs/dtds" from source code into "c:"

 

ok?

 

 

 

 

 

 

 

 

By: Kobi Joseph - sourcesoso

RE: compilation error - doesn't see dtd

2003-09-16 02:29

Thanks for your answering so fast,... but with such changes I still can't get the compiled resource - the same error stack trace :( as with the local dtd-file, as with the rempote one on Jasper web-site. What can be the other reason?

 

 

 

 

By: Kobi Joseph - sourcesoso

compilation error - doesn't see dtd

2003-09-16 04:40

Thanks for your answering so fast,... but with such changes I still can't get the compiled resource - the same error stack trace :( as with the local dtd-file, as with the rempote one on Jasper web-site. What can be the other reason?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...