upendram wrote:
Hi
thank u Farzad.I placed it in classes folder only but still it gives me same error.is there something worng with this statement:
private static final Configuration CFG = new Configuration().configure("/hibernate.cfg.xml");
and how to test it whether it is able to recognize the cfg file or not.
if i delcare a connection variable and make connection and declare
sessionFactory.openSession(conn);
then everything is cool and even able to insert values.
thanks in advance
Upendra.M
Your problem should be somewhere else because I did a small test and it finds the cfg file. Can you show us how your cfg file looks like? UserSuppliedConnectionProvider is used when you don't specify a connection setting.
Farzad-