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
|