Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
org.hibernate.HibernateException: problem parsing configuration/hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1291)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1230)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1216)
at com.praveen.test.entity.CustomerMgr.<init>(CustomerMgr.java:23)
at com.praveen.test.entity.CustomerMgr.main(CustomerMgr.java:36)
Caused by: org.dom4j.DocumentException: Error on line 4 of document : External entity not found: "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd". Nested exception: External entity not found: "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd".
at org.dom4j.io.SAXReader.read(SAXReader.java:350)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1286)
... 4 more
Name and version of the database you are using:
SQL Server 7.0
The generated SQL (show_sql=true):
N/A
Debug level Hibernate log excerpt:
N/A
Here is the configuratione file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
<property name="hibernate.connection.url">jdbc:microsoft:sqlserver://localhost:1433;databaseName=PRAVEEN;selectMethod=cursor</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password">sa</property>
<property name="dialect">net.sf.hibernate.dialect.HSQLDialect</property>
<property name="show_sql">true</property>
<property name="transaction.factory_class">
net.sf.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.cache.provider_class">
net.sf.hibernate.cache.HashtableCacheProvider
</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<mapping resource="com/praveen/test/entity/customer.hbm.xml"/>
</session-factory>
</hibernate-configuration>