-->
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: Problems with reading the hibernate.cfg.xml file --need help
PostPosted: Fri Sep 10, 2010 7:00 pm 
Newbie

Joined: Fri Sep 10, 2010 6:50 pm
Posts: 2
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 as specifying the path in Configure.configure(" " ) method.

here is my cfg file:

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost/tulipsDB</property>
<property name="connection.username">tulips</property>
<property name="connection.password">tulips</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hbm2ddl.auto">update</property>
<mapping resource="com/hp/tulips/beans/utils/hibernate/TestCases.hbm.xml"/>
<mapping resource="com/hp/tulips/beans/utils/hibernate/TestScenario.hbm.xml"/>
</session-factory>
</hibernate-configuration>

could there be anything significant that i could be missing? jar file may be ? i have tried everything possible.. any help here would be much appreciated .

thanks in advance
Donald


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.