Forums Register Login

Hibernate:xml file not found but find properties file

+Pie Number of slices to send: Send
I just started to learn hibernate .I make hibernate.cfg.xml but when i execute my application it not find xml file but when i make hibernate.properties and put in the same directory it easily find it .Where i am going wrong.
Thanks
+Pie Number of slices to send: Send
Have you placed the hibernate.cfg.xml at the root of the classpath? For more details have a look at Section 3.7 at Hibernate Reference
+Pie Number of slices to send: Send
 

Originally posted by Jaikiran Pai:
Have you placed the hibernate.cfg.xml at the root of the classpath? For more details have a look at Section 3.7 at Hibernate Reference



When hibernate not able to find xml file i put the properties file in same directory.
Thanks
Yeah, but is it art? What do you think tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 920 times.
Similar Threads
Miscellaneous Questions
Problem in creating executable jar (Eclipse)
how can i count objects in an object file
Why Class.forName does not work when calling from jar file
c/c++ from Java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:12:45.