Jump to content
Changes to the Jaspersoft community edition download ×

XML Parser doesn't work properly on solaris


Recommended Posts

By: wuliming - akyca

XML Parser doesn't work properly on solaris

2003-07-02 20:23

header of my xml file:

type 1: <?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE jasperReport SYSTEM "ReportManage/report/jasperreport.dtd">

//--ReportManage/report/ is my web context

 

type 2: <?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE jasperReport SYSTEM "jasperreport.dtd">

 

type 3:<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE jasperReport SYSTEM "C:/test/ReportManage/report/jasperreport.dtd">

 

all the above cases do work on windows, but on solaris(after changing the corresponding paths), type 1 and type 3 results in the following Exception:

org.xml.sax.SAXParseException: URI was not

reported to parser for entity [document]

 

type 2 results in :

java.net.MalformedURLException: no protocol:

jasperreport.dtd

 

I am totally confused about the report on solaris, can someone help me? thanks a lot!

//bow

 

 

 

 

 

 

By: Teodor Danciu - teodord

RE: XML Parser doesn't work properly on solar

2003-07-03 02:15

 

Hi,

 

Why did you modify the DTD location.

Use the URL found in the sample reports.

 

It should work, as they point to the DTD

found in the JasperReports jar itself, due to

an internal entity resolver.

 

Thank you,

Teodor

 

 

 

 

 

By: Simon Chevrier - simonchevrier

RE: XML Parser doesn't work properly on solar

2003-07-07 08:49

Hi,

 

I have a question

 

What appening if the URL found in the sample report is down?

 

Simon

 

 

 

 

By: Teodor Danciu - teodord

RE: XML Parser doesn't work properly on solar

2003-07-07 08:57

 

Hi,

 

In fact, the program never tries (or should NOT try)

to load the DTD files from the Internet.

Those URLs are just special identifiers that the library

recognizes and loads the DTD from the JAR file itself.

 

Thank you,

Teodor

 

 

 

 

 

By: Simon Chevrier - simonchevrier

RE: XML Parser doesn't work properly on solar

2003-07-07 09:58

Hi,

 

What is the best way to create a DOCTYPE that it will work everytime?

 

Thanks

 

simon

 

 

 

 

By: Teodor Danciu - teodord

RE: XML Parser doesn't work properly on solar

2003-07-07 10:07

 

Hi,

 

The DOCTYPE used in all the samples should work

everytime:

 

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

 

In fact, it is THE doctype to use and nothing else

should appear in the header of the XML report designs.

 

Thank you,

Teodor

 

 

 

 

 

By: Simon Chevrier - simonchevrier

RE: XML Parser doesn't work properly on solar

2003-07-07 10:56

Hi,

 

Can you tell me when the jasperreport.dtd was upgrade on the web? I saw that the jasperreport.dtd that we downloaded last friday was not the same of the one in the package of jasperreport.

 

Thanks

 

Simon

 

 

 

 

By: Teodor Danciu - teodord

RE: XML Parser doesn't work properly on solar

2003-07-07 12:16

 

Hi,

 

The online DTDs changed yesterday when the new

0.5.0 version was published.

But they are never used from that location and

are placed there just ... for fun.

 

Thank you,

Teodor

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