I followed this hibernate tutorial at
http://www.gloegl.de/8.html and I a little modification to it so that it runs in
J2EE app. I could get it to work with regular
jdbc connection based on the setting below:-
So, I tried to convert it to run with connection pooling with the following settings:-
When I run it again, I get the following error:-
At first, I thought I messed up my JNDI settings in my server and web.xml. So, I did a
test on the following codes with the same sql statement generated by hibernate, and it works:-
May I know where I set wrongly in my hibernate.cfg.xml for my connection pooling? I have been messing around for 2 hours now, but still couldn't get it to work.
Any tips would be greatly appreciated! Thanks.