• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate exception

 
Betsy Camel
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am new to hibernate. i am getting this exception can anyone help me


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 grtr.main(grtr.java:17)
Caused by: org.dom4j.DocumentException: Connection refused: connect Nested exception: Connection refused: connect
at org.dom4j.io.SAXReader.read(SAXReader.java:353)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1286)
... 3 more
 
A. Aylin Yorulmaz
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
make sure your hibernate.cfg.xml file uses xml tags properly

for ex not like this:

"http://hibernate.sourceforge.net/hibernate-configuration-
3.0.dtd">

but like this:

<?xml version="1.0"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic