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!!!
|