daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Apr 21st, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. When I tried to run hibernate application file its giving issue with hibernate.cfg.xml.  for parsring the file at DTD level.
  2.    
  3. INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
  4. Apr 21, 2017 4:55:09 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
  5. WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
  6. Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
  7.     at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2165)
  8.     at org.hibernate.cfg.Configuration.configure(Configuration.java:2077)
  9.     at org.hibernate.cfg.Configuration.configure(Configuration.java:2056)
  10.     at com.app.main.HibernateTest.main(HibernateTest.java:19)
  11. Caused by: org.dom4j.DocumentException: Error on line 5 of document  : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
  12.     at org.dom4j.io.SAXReader.read(SAXReader.java:482)
  13.     at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2157)
  14.     ... 3 more
  15.    
  16. <!DOCTYPE hibernate-configuration PUBLIC  
  17.       "-//Hibernate/Hibernate Configuration DTD 3.0//EN"  
  18.       "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  19.  
  20. Using Hibernate 4.3.11 jars
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top