read « cfg « JPA Q&A





1. Problems with reading the hibernate.cfg.xml file --need help    forum.hibernate.org

HI, I get the follwoing error when reading the hibernate config file : org.dom4j.DocumentException: Validation not supported for XMLReader: com.bluecast.xml.Piccolo@fb6c5f Nested exception: validation is not supported Nested exception: Validation not supported for XMLReader: com.bluecast.xml.Piccolo@fb6c5f Nested exception: validation is not supported org.dom4j.io.SAXReader.read(SAXReader.java:358) org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1481) org.hibernate.cfg.Configuration.configure(Configuration.java:1425) org.hibernate.cfg.Configuration.configure(Configuration.java:1411) I'm using MySql database. i have tried putting the xml file both in the classpath, as well ...

2. reading hibernate.cfg.xml with DocumentBuilderFactory    forum.hibernate.org

Newbie Joined: Wed Jan 05, 2005 5:30 am Posts: 14 I am trying to read in the hibernate.cfg.xml file using DocumentBuilderFactory. But it times out. It has problem with the following Code: Removing this makes it work, but then hibernate stalls :) Hope you ...

3. Read external properties file in hibernate.cfg.xml?    forum.hibernate.org

jdbc.properties

4. read hibernate.cfg.xml using code    forum.hibernate.org

I should be more specific about the issue, here it goes: the deployment environment of my current hibernate based project requires all configuration files to be in a separated dir which is outside the jar file. so I need to separate hibernate.cfg.xml from other xml files used for mapping. any idea how to achieve this? Thanks in advance!

5. Multiple hibernate.cfg.xml files, 2nd one not read?    forum.hibernate.org

Hi, I have a problem using two libraries that both user Hibernate. Each library includes a hibernate.cfg.xml file in the root of its jar, and each library does the simplest possible hibernate configuration for itself, e.g. sessionFactory = new Configuration().configure().buildSessionFactory(). Both libraries work fine by themselves. But the 3rd library depends on both, and when it issues calls I get Hibernate ...