I have Eclipse Europa and am trying to do a hibernate example in it.
I am trying to simply add an entry to the database.
My hibernate.cfg.xml file is as follows:
Eclipse keeps showing errors for this xml.
An when I run the class with the hibernate code it shows/throws the following error.
My java classes are in the src folder, there is no package hierarchy. The hibernate.cfg.xml file is placed in the bin folder.
Is this an Eclipse issue is there an error in the way the xml is written.
How do I get this resolved.
Priety Sharma wrote:If I remove it from there it says hibernate.cfg.xml not found. Which means that it is where it should be.
Yes, that's what I mean, it should be found in the CLASSPATH. If you still get the parse exception all I can say is just check your xml against the reference of the Hibernate version you are using thoroughly.