• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could not parse hibernate.cfg.xml

 
Chintan Sanghavi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii...
I am new to Hibernate...

Below is my hibernate.cfg.xml file...



I don't found any formatting issue with this file..

Still I am getting follwing error...



Please help...
Thanks in adv..
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

# [java] Caused by: org.dom4j.DocumentException: Connection timed out: connec
# t Nested exception: Connection timed out: connect

This is probably caused by the parser trying to access the DTD. It shouldn't need to do this over the web (they are included with the code).

Ah - did you really mean to use Hibernate v2.0?
 
Chintan Sanghavi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even for following DTD 3.0, same error is coming....



And if I remove this part completely from XMl, more errors are coming...

Not able to understand what to do...
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of Hibernate are you using?

Like I said, Hibernate comes wit ha local DTD catalog, so it should not be going to the internet for this DTD. I would review what you have installed, check you've got all that was documented.
 
Chintan Sanghavi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Paul for a timely help.
I substituted local dtd tags, and now it's working absolutely fine...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic