This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Could not parse hibernate.cfg.xml  RSS feed

 
Greenhorn
Posts: 13
  • 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: 13
  • 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: 13
  • 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...
 
grapes are vegan food pellets. Eat this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!