Re: -xcatalog option and deferred parsing don't play nice together

Richard Kunze <[email protected]>
Newsgroups gmane.comp.java.enhydra.xmlc
Organization Tivano Software GmbH
Message-ID <[email protected]>
Hi Jake,

On Friday 15 August 2003 06:14, Jacob Kjome wrote:
> I just ran into a problem trying to load an XMLC class using deferred
> parsing where the metadata for the XML file specifies -xcatalog like
> this...
>
> -xcatalog org/enhydra/barracuda/tutorials/xmlc/tutorials.xcat
>
> Now, this compiles just fine.  The tutorials.xcat is found in the source
> path (and the dtd referenced in there is found just fine as
> well).  However, when the class is loaded using deferred parsing, I get the
> following error...

You're specifying a relative URL for the XCatalog here. If I'm not mistaken, 
that relative URL is made absolute by the XML parser before being passed off 
to the entity resolver, and it looks like the base for the URL for looking up 
catalog files is the working directory of the VM. In other words, the entity 
resolver ends up with the wrong system ID for the catalog.

Try the absolute URL file:/org/enhydra/barracuda/tutorials/xmlc/tutorials.xcat 
instead. The XMLC entity resolver is smart enough to try and load this from 
the class path.

Richard
-- 
Richard Kunze 

[ t]ivano Software, Bahnhofstr. 18, 63263 Neu-Isenburg
Tel.: +49 6102 80 99 07 - 0, Fax.: +49 6102 80 99 07 - 1
http://www.tivano.de, [email protected]
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA/PIG786Aqb3OZfF4RAjEeAJ0Tn8oMnfClNqPB5D1JHt2ZYDcUNgCgtOfJ
Nje7CyIyQB3tnS8EEOczx5g=
=zMZz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.