show your modified ds to see if they are correct
I just figured out why.
I was using a client program(in another VM) to get the datasource, which is not allowed in JBoss.
When I try to get the datasource from inside a bean, I do not have problem.
Oh, sorry I posted to the wrong forum.