Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: using local dtds for validation hibernate mapping files
PostPosted: Wed Oct 19, 2005 2:36 pm 
Newbie

Joined: Thu Jul 28, 2005 3:58 am
Posts: 7
i'm running into a problem where the following lines in the hibernate-mapping file

<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hbernate-mapping-3.0.dtd" >

causes xml validation code to connect to hibernate.sourceforge.net.
So, whenever hibernate.sourceforge.net is slugish or I have no internet connection on my machine, connect would fail. Is there a way to use local dtd to validate the xml or turn off the validation altogether?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 2:41 pm 
Expert
Expert

Joined: Wed Apr 06, 2005 5:03 pm
Posts: 273
Location: Salt Lake City, Utah, USA
Make sure your DTD and jar versions match up (3.0 with Hibernate3, etc.) and Hibernate will read it out of its own jar (local). It only goes to the internet if it can't find it in the jar (mismatch of versions).

By the way, this has been addressed many times in this forum.

_________________
nathan


Top
 Profile  
 
 Post subject: Re: using local dtds for validation hibernate mapping files
PostPosted: Wed Oct 19, 2005 2:42 pm 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
mappy wrote:
i'm running into a problem where the following lines in the hibernate-mapping file

<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hbernate-mapping-3.0.dtd" >

causes xml validation code to connect to hibernate.sourceforge.net.
So, whenever hibernate.sourceforge.net is slugish or I have no internet connection on my machine, connect would fail. Is there a way to use local dtd to validate the xml or turn off the validation altogether?



You might try and fix this line first.
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hbernate-mapping-3.0.dtd" >

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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.