Comments on: Hibernate Hello World Program (Hibernate Insert Query) Get it YourSelf Sun, 16 Oct 2016 19:52:44 +0000 hourly 1 By: praphulla Thu, 08 Sep 2016 04:32:45 +0000 Hello Sir,
I have loaded the postgres driver for my Hibernate application but not able to connect to Database it is showing following error ,please help me..
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.exception.JDBCConnectionException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.convert(
at org.hibernate.exception.JDBCExceptionHelper.convert(

By: mahendra Sun, 14 Aug 2016 04:31:39 +0000 Hi java4s team,

I executed program in eclipse but i got one exception. The exception i mention bellow.

Exception in thread “main” org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(
at org.hibernate.cfg.Configuration.configure(
at san.StoreData.main(
Caused by: org.dom4j.DocumentException: Error on line 3 of document : The document type declaration for root element type “hibernate-configuration” must end with ‘>’. Nested exception: The document type declaration for root element type “hibernate-configuration” must end with ‘>’.
at org.hibernate.cfg.Configuration.doConfigure(
… 2 more

Please give me replay as soon as possible.

thank you

By: ajit Wed, 29 Jun 2016 11:29:02 +0000 Hi ,

This is very good site for beginners.Thanks a lot for your valueable time.

in above program,hibernate.cfg.xml file u have mentioned dialet instead of dialect due to which getting error “Hibernate Dialect must be explicitly set”