[jdom-interest] need help with local DTD
paul at activemath.org
Fri Nov 11 07:58:50 PST 2005
Can I infer you didn't create your input-source with a system-id URL ?
Without it, no parser can sensibly resolve relative URLs... and they
should not consider any such notation of "current directory" unless
Le 11 nov. 05, à 16:28, jdom-interest at vrolijken.nl a écrit :
> Hi all,
> I'm working on WebSphere 5.0 on a project that involves Jakarta Slide.
> For that
> project I needed to change the classloader policy to PARENT_LAST and
> classloader policy to APPLICATION so that it would use the JDom
> provided with
> Slide, which is newer that the WSAD one. The problem I'm having now is
> that the
> OJB configuration (which is also needed) is not properly loaded
> The error I'm getting is "no protocol" for the DTD. I would not think
> protocol is needed as it is a local file. I can change the
> specification of the
> DTD into "file:///path/on/my/local/machine/repository.dtd" and that
> works. The
> problem (obviously) is that this won't work in production, as the path
> completely different.
> What am I doing wrong here?
> --- part of the code where stuff breaks ----
> DescriptorRepository repository = new DescriptorRepository();
> ContentHandler handler = new RepositoryXmlHandler(repository);
> reader.parse(source); <--- throws a
> --- XML file that is fed to 'source' ---
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE descriptor-repository PUBLIC "-//Apache Software
> Foundation//DTD OJB
> Repository//EN" "repository.dtd"
> <!ENTITY database SYSTEM "repository_database.xml">
> <!ENTITY internal SYSTEM "repository_internal.xml">
> <!ENTITY user SYSTEM "intranet_mapping.xml">
> To control your jdom-interest membership:
More information about the jdom-interest