Javatpoint Logo

in hibernate program

By: satyen*** On: Thu Oct 29 17:58:44 IST 2015     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
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.javatpoint.mypackage.StoreData.main(StoreData.java:14)
Caused by: org.dom4j.DocumentException: Error on line 2 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)


how to solve this problem
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1481)
... 2 more
Up0Down

 
Image Created0Down

By: [email protected] On: Wed Nov 04 14:10:18 IST 2015 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No