-->
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.  [ 4 posts ] 
Author Message
 Post subject: uploading DTD locally instead of website
PostPosted: Tue Nov 15, 2005 2:02 pm 
Newbie

Joined: Fri Nov 11, 2005 12:55 pm
Posts: 6
To reduce start up time of application, i wanted to load dtd file locally instead of hibernate website. I updated hibernate dtd file (hibernate-mapping-3.0.dtd, hibernate-configuration-3.0.dtd) and all my xml file to load dtd from locally. Following is the line updated.


[i]old LIne[/i]
[b]http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd[/b]

[i]New line[/i]
[b]file:///C:/Work/UTE/java code/classes/hibernate-configuration-3.0.dtd[/b]

But i am getting parsing error. Could you please let me know how to resolve this?


Thanks in advance.
Prashant


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 2:12 pm 
Expert
Expert

Joined: Wed Apr 06, 2005 5:03 pm
Posts: 273
Location: Salt Lake City, Utah, USA
You're trying to fix something that isn't broken :) Hibernate already loads the DTD from the hibernate jar file. It will never go to the website unless you have mixed up the version of the DTD in your mapping files.

_________________
nathan


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 2:39 pm 
Newbie

Joined: Fri Nov 11, 2005 12:55 pm
Posts: 6
As per the topic discussed recently at follow link, someone (6th answer) mentioned that loading dtd locally can save time. That's why i am looking in to that.

http://forum.hibernate.org/viewtopic.ph ... b5a1b1bc92


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 2:48 pm 
Expert
Expert

Joined: Wed Apr 06, 2005 5:03 pm
Posts: 273
Location: Salt Lake City, Utah, USA
Loading the DTD locally is the normal behavior for Hibernate, unless you have mixed up your DTD version, or, as Steve mentioned in that thread, if you have something else wrong in the DOCTYPE def.

As long as you have followed the docs and examples for your mapping files, hibernate will already load the DTD locally (from inside the hibernate jar).

Hope this helps.

_________________
nathan


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.