mannsingh3
asked on
Hibernate cfg xml error
Hello
I am trying to learn hibernate using postgres db on my laptop . I have attached the hibernate.cfg.xml file and also pasted a error code , can somebody help me debug it
Exception in thread "main" org.hibernate.HibernateExc eption: Could not parse configuration: /hibernate.cfg.xml
at org.hibernate.cfg.Configur ation.doCo nfigure(Co nfiguratio n.java:224 6)
at org.hibernate.cfg.Configur ation.conf igure(Conf iguration. java:2158)
at org.hibernate.cfg.Configur ation.conf igure(Conf iguration. java:2137)
at org.koushik.hibernate.Hibe rnateTest. main(Hiber nateTest.j ava:20)
Caused by: org.dom4j.DocumentExceptio n: Error on line 2 of document : The processing instruction target matching "[xX][mM][lL]" is not allowed. Nested exception: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.dom4j.io.SAXReader.rea d(SAXReade r.java:482 )
at org.hibernate.cfg.Configur ation.doCo nfigure(Co nfiguratio n.java:223 8)
... 3 more
hibernate.cfg.xml
I am trying to learn hibernate using postgres db on my laptop . I have attached the hibernate.cfg.xml file and also pasted a error code , can somebody help me debug it
Exception in thread "main" org.hibernate.HibernateExc
at org.hibernate.cfg.Configur
at org.hibernate.cfg.Configur
at org.hibernate.cfg.Configur
at org.koushik.hibernate.Hibe
Caused by: org.dom4j.DocumentExceptio
at org.dom4j.io.SAXReader.rea
at org.hibernate.cfg.Configur
... 3 more
hibernate.cfg.xml
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.