-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Base URI / DTD
PostPosted: Sun Nov 02, 2003 12:05 am 
Senior
Senior

Joined: Tue Oct 21, 2003 8:15 am
Posts: 186
Code:
SEVERE: Error parsing XML: C:\test\mapping.xml(2)
org.xml.sax.SAXParseException: Relative URI "c:\test\dtd\hibernate-mapping-2.0.dtd"; can not be resolved without a base URI.


Because I'm not always online, I changed the mapping xml's DOCTYPE to point to a version of the DTD file which is local.

Solution?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 02, 2003 12:48 pm 
Senior
Senior

Joined: Tue Oct 21, 2003 8:15 am
Posts: 186
Tried "hibernate-mapping-2.0.dtd" and putting the DTD file in the classpath... still no success.

Is this a bug in the parser (I'm using the one that came with hibernate) ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2003 5:28 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
If you let the original DTD (http://hibernate.sourceforge.net/...), Hibernate will look at net/sf/hibernate/... in classpath. No need to change it.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2003 9:19 am 
Senior
Senior

Joined: Tue Oct 21, 2003 8:15 am
Posts: 186
Well, what JAR file do I need to include (or do I need to create one having the DTD file?)

Cus' with the JAR-files I'm using now, it still tries to access the DTD online!!!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 04, 2003 7:19 am 
Senior
Senior

Joined: Tue Oct 21, 2003 8:15 am
Posts: 186
Anyone????


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 04, 2003 11:15 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I use hibernate out of the box wo web access. It works fine.

Here is my DOCTYPE
Code:
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.