You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Michael Ansley <mi...@btinternet.com> on 2003/01/03 02:33:30 UTC
Relative URIs
Anybody know how to deal with this (sorry, haven't checked the archives yet,
they appear to be offline):
Caused by: org.apache.ojb.broker.metadata.MetadataException: Could not read
repository class descriptor data, using repository: repository.xml: Relative
URI "repository_database.xml"; can not be resolved without a base URI.
at
org.apache.ojb.broker.metadata.MetadataManager.<init>(MetadataManager.java:58)
at
org.apache.ojb.broker.metadata.MetadataManager.<clinit>(MetadataManager.java:40)
... 41 more
Caused by: org.xml.sax.SAXParseException: Relative URI
"repository_database.xml"; can not be resolved without a base URI.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
at org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2758)
I know what the problem is, I just don't know enough to resolve it
effectively. All the repository*.xml files, and the dtd are included in the
ejb jar file that I'm deploying in JBoss. Should I put them somewhere else?
If so, where?
Cheers...
MikeA
Re: Relative URIs
Posted by Armin Waibel <ar...@code-au-lait.de>.
Thanks Norman and Michael,
I love you ;-)
I checked in that fix.
Sorry, it was my mistake - changed the
reader.parser(...) argument during my
refactoring of the metadata stuff - damn me!.
regards,
Armin
----- Original Message -----
From: "Michael Ansley" <mi...@btinternet.com>
To: "OJB Users List" <oj...@jakarta.apache.org>
Sent: Friday, January 03, 2003 9:17 PM
Subject: Re: Relative URIs
> That's just great. I will try that later. Thanks a lot.
>
> Cheers...
>
>
> MikeA
>
>
> On Friday 03 January 2003 18:24, Norman C. Jarvis wrote:
> > I have this same error and I changed RepositoryPersistor.java in two
> > places from:
> >
> > reader.parse(new InputSource(url.openStream()));
> >
> > to
> >
> > reader.parse(new InputSource(url.toString()));
> >
> > I don't know if this is the correct fix, but it worked for me.
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
>
Re: Relative URIs
Posted by Michael Ansley <mi...@btinternet.com>.
That's just great. I will try that later. Thanks a lot.
Cheers...
MikeA
On Friday 03 January 2003 18:24, Norman C. Jarvis wrote:
> I have this same error and I changed RepositoryPersistor.java in two
> places from:
>
> reader.parse(new InputSource(url.openStream()));
>
> to
>
> reader.parse(new InputSource(url.toString()));
>
> I don't know if this is the correct fix, but it worked for me.
Re: Relative URIs
Posted by "Norman C. Jarvis" <nj...@learningoptics.com>.
I have this same error and I changed RepositoryPersistor.java in two
places from:
reader.parse(new InputSource(url.openStream()));
to
reader.parse(new InputSource(url.toString()));
I don't know if this is the correct fix, but it worked for me.
--
Norman Jarvis
njarvis@learningoptics.com
On Fri, 3 Jan 2003 01:33:30 +0000
Michael Ansley <mi...@btinternet.com> wrote:
> Anybody know how to deal with this (sorry, haven't checked the
> archives yet, they appear to be offline):
>
> Caused by: org.apache.ojb.broker.metadata.MetadataException: Could not
> read repository class descriptor data, using repository:
> repository.xml: Relative URI "repository_database.xml"; can not be
> resolved without a base URI.
> at
> org.apache.ojb.broker.metadata.MetadataManager.<init>(MetadataManager
> .java:58)
> at
> org.apache.ojb.broker.metadata.MetadataManager.<clinit>(MetadataManag
> er.java:40)
> ... 41 more
> Caused by: org.xml.sax.SAXParseException: Relative URI
> "repository_database.xml"; can not be resolved without a base URI.
> at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
> at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
> at
> org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:275
> 8)
>
> I know what the problem is, I just don't know enough to resolve it
> effectively. All the repository*.xml files, and the dtd are included
> in the ejb jar file that I'm deploying in JBoss. Should I put them
> somewhere else? If so, where?
>
> Cheers...
>
>
> MikeA
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>
>
Re: Relative URIs
Posted by "Norman C. Jarvis" <nj...@learningoptics.com>.
I have this same error and I changed RepositoryPersistor.java in two
places from:
reader.parse(new InputSource(url.openStream()));
to
reader.parse(new InputSource(url.toString()));
I don't know if this is the correct fix, but it worked for me.
On Fri, 3 Jan 2003 01:33:30 +0000
Michael Ansley <mi...@btinternet.com> wrote:
> Anybody know how to deal with this (sorry, haven't checked the
> archives yet, they appear to be offline):
>
> Caused by: org.apache.ojb.broker.metadata.MetadataException: Could not
> read repository class descriptor data, using repository:
> repository.xml: Relative URI "repository_database.xml"; can not be
> resolved without a base URI.
> at
> org.apache.ojb.broker.metadata.MetadataManager.<init>(MetadataManager
> .java:58)
> at
> org.apache.ojb.broker.metadata.MetadataManager.<clinit>(MetadataManag
> er.java:40)
> ... 41 more
> Caused by: org.xml.sax.SAXParseException: Relative URI
> "repository_database.xml"; can not be resolved without a base URI.
> at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
> at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
> at
> org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:275
> 8)
>
> I know what the problem is, I just don't know enough to resolve it
> effectively. All the repository*.xml files, and the dtd are included
> in the ejb jar file that I'm deploying in JBoss. Should I put them
> somewhere else? If so, where?
>
> Cheers...
>
>
> MikeA
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>
>
--
Norman Jarvis
njarvis@learningoptics.com