-->
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: Verifying dtds mentioned in hbm files without internet
PostPosted: Fri Feb 09, 2007 6:26 am 
Newbie

Joined: Wed Dec 06, 2006 7:33 am
Posts: 8
Location: Pakistan
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

The above statement in hbm.xml file requires internet for verification from dtds. Can anyone tell me how to validate through dtds without internet.

dtds can also be found in .jar of hibernate.

What should be mentioned in DOCTYPE to avoid this problem.

Thanx in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 09, 2007 9:37 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
just save the dtd file to somewhere local and change what's in that last quotation

host it locally
"http://localhost/hibernate-mapping-3.0.dtd"

or put it on your own computer accessible by your application
"/Users/name/workspace/project/lib/hibernate-mapping-3.0.dtd"

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject: RE:Verifying dtds mentioned in hbm files without internet
PostPosted: Fri Feb 09, 2007 10:10 am 
Newbie

Joined: Wed Dec 06, 2006 7:33 am
Posts: 8
Location: Pakistan
Right now i'm doing this on windows platform, but i want to do it Linux.

Is there any way to assign relative path from web application in DOCTYPE for dtds .

Thanx in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 09, 2007 10:19 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
not sure about relative path, I've never tried it. I assume it would work. But I know hosting it locally with a direct path does work

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


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.