-->
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.  [ 5 posts ] 
Author Message
 Post subject: Disabling hibernate.cfg.xml validation !
PostPosted: Wed Sep 01, 2004 8:17 am 
Newbie

Joined: Sun Aug 08, 2004 3:22 pm
Posts: 4
Hibernate version:2.0

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:FileNotFoundException ...

Name and version of the database you are using:

Debug level Hibernate log excerpt:

We don't have acces to HTTP on my production server and hibernate try to connect to sourceforge.net for validation the XML file, like mapping and configuration !

is it possible to disable this validating ????

_________________
Marc Boily
Java software developer


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 8:33 am 
Newbie

Joined: Wed Sep 01, 2004 5:49 am
Posts: 6
Location: Stavropol city
To do that just use the DOCTYPE like that

<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"hibernate-configuration-2.0.dtd">

and put "hibernate-configuration-2.0.dtd" into your classpath.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 11:10 am 
Newbie

Joined: Sun Aug 08, 2004 3:22 pm
Posts: 4
I use a WAR file structure ... on tree differents app server...

How i can do that ?

_________________
Marc Boily
Java software developer


Top
 Profile  
 
 Post subject: I try with the classpath and he search at d:/dev/XXX
PostPosted: Wed Sep 01, 2004 11:30 am 
Newbie

Joined: Sun Aug 08, 2004 3:22 pm
Posts: 4
The classpath not seem used ...

:-(

_________________
Marc Boily
Java software developer


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 11:37 pm 
Newbie

Joined: Wed Sep 01, 2004 5:49 am
Posts: 6
Location: Stavropol city
You should to copy "hibernate-configuration-2.0.dtd" into your app server lib directory.

e.g. i'm solving that problem by copying "hibernate-configuration-2.0.dtd" into {JBOSS_HOME\server\default\lib}

In other app server just do something like that.

regards.


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