Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • 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
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Could not parse hibernate.cfg.xml  RSS feed

 
Greenhorn
Posts: 16
  • 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: 16
  • 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: 16
  • 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...
 
He was expelled for perverse baking experiments. This tiny ad is a model student:
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!