Jump to content
We've recently updated our Privacy Statement, available here ×

Problem with <!DOCTYPE>


Recommended Posts

By: Dang Xuan Thinh - xuanthinh

Problem with <!DOCTYPE>

2002-09-28 02:24

Hi,

In the header of XML file had a describe line as

<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">.

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:ThinhDXJavaJasperReportsdocsdtdsjasperreport.dtd">

 

But I get error:

org.xml.sax.SAXException: Unknown system ID : D:ThinhDXJavaJasperReportsdocs

dtdsjasperreport.dtd

at dori.jasper.engine.xml.JRXmlDigester.resolveEntity(JRXmlDigester.java

:90)

at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(EntityReso

lverWrapper.java:141)

at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManage

r.java:513)

at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(

XMLDocumentScannerImpl.java:813)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM

LDocumentFragmentScannerImpl.java:328)

at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP

arserConfiguration.java:479)

at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP

arserConfiguration.java:521)

at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148)

at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j

ava:972)

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

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

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

at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCom

pileManager.java:49)

at FontsApp.main(FontsApp.java:64)

 

How can I repair this error? Please help me.

Thanks

Best regards

 

 

By: Albert L. - looks

RE: Problem with <!DOCTYPE>

2002-09-28 03:15

hi,

 

I'm running reports with the original <!DOCTYPE..> all the time

without connecting to the net, and it is fine.

 

Albert.

 

 

By: Teodor Danciu - teodord

RE: Problem with <!DOCTYPE>

2002-10-01 02:50

 

Hi,

 

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!

Teodor

 

 

 

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

Hi,

 

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?

 

Thanks

 

Andreas

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...