-->
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.  [ 1 post ] 
Author Message
 Post subject: How to resolve Hibernate DTDs locally
PostPosted: Mon Aug 08, 2011 12:19 am 
Newbie

Joined: Thu Jan 24, 2008 1:35 am
Posts: 9
Hello,

In my web app, Hibernate is trying to resolve its DTDs on the net. How can i get it to resolve them locally?
I updated my mapping files so that they include the following system entity, but its still looking on the net.

I have the hibernate3 jar files in my web-inf/lib directory and thought the following would get picked up in the hibernate jar.
Alternatively, is there a way to disable this check?

Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"
        [<!ENTITY mapping SYSTEM "classpath://org/hibernate/hibernate-mapping-3.0.dtd"> ]>


Error Message:
Code:
Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org
   at org.dom4j.io.SAXReader.read(SAXReader.java:484)
   at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:499)
   ... 105 more



Thanks


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

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.