• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Could not parse hibernate.cfg.xml  RSS feed

 
Greenhorn
Posts: 11
  • 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..
 
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: 11
  • 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: 11
  • 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...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!