I had the same problem using DB2 but resolved it by doing a few things. I've listed the steps I used in another thread - plzzzzz help (Oracle pool error). Hope those suggestions work for you.
where is it?
Infosd, you can see which topic Ramki has participed by clicking on his name.
Then you will the link is:
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t= the way, thanks Ramki for giving us some java code for the DB2 connection, I'm going to use it.