Problem with <!DOCTYPE>

By: Dang Xuan Thinh - xuanthinh
Problem with <!DOCTYPE>
2002-09-28 02:24
In the header of XML file had a describe line as
<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "">.
But some time I can't connect to internet. I want refer file in my computer as
<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "D:\ThinhDX\Java\JasperReports\docs\dtds\jasperreport.dtd">

But I get error:
org.xml.sax.SAXException: Unknown system ID : D:\ThinhDX\Java\JasperReports\docs
at dori.jasper.engine.xml.JRXmlDigester.resolveEntity(
at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(EntityReso
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManage
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
at org.apache.xerces.parsers.XMLParser.parse(
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
at org.apache.commons.digester.Digester.parse(
at dori.jasper.engine.xml.JRXmlLoader.loadXML(
at dori.jasper.engine.xml.JRXmlLoader.load(
at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCom
at FontsApp.main(

How can I repair this error? Please help me.
Best regards

By: Albert L. - looks
RE: Problem with <!DOCTYPE>
2002-09-28 03:15

I'm running reports with the original <!DOCTYPE..> all the time
without connecting to the net, and it is fine.


By: Teodor Danciu - teodord
RE: Problem with <!DOCTYPE>
2002-10-01 02:50


Don't worry!
You don't have to be connected to the Internet
for JasperReports to work.

In fact, those DTD references point to internal DTD
files that are found in the JasperReports JAR.

Do not try to modify it, because it won't work!
You cannot use DTD files on disk, without having
to modify the JasperReports code.

Good luck!

By: Dang Xuan Thinh - xuanthinh
RE: Problem with <!DOCTYPE>
2002-10-02 07:01
Thank you very much

By: Andreas Oberhack - oberhack
RE: Problem with <!DOCTYPE>
2002-10-04 01:43

I can ran my reports on two machines without any problems - not beeing connected to the net.

Now I installed all stuff on a third machine, and I get the same error as above.

What to do?


2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 17 years 1 month ago

0 Answers:

No answers yet