-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Could not parse configuration: hibernate.cfg.xml
PostPosted: Tue Jul 30, 2013 4:39 am 
Newbie

Joined: Tue Jul 30, 2013 4:28 am
Posts: 1
Hi All,

This is my first hands on Hibernate. I created four files.
1.Product.java(POJO)
2. Product.hbm.xml
3. hibernate.cfg.xml
4.MainProgram(Hibernate Logic)

Eclipse Version : Juno Service Release 2
MySQL jar : mysql-connector-java-5.1.25
Java : JDK1.6

When i tried to run this program, it is throwing me an exception :


log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1491)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1425)
at com.avish.javabrains.ClientForSave.main(ClientForSave.java:11)
Caused by: org.dom4j.DocumentException: Connection refused: connect Nested exception: Connection refused: connect
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1481)
... 2 more


Can anyone shed some light on this, and tell me where i m doing wrong!!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.