I think you have specified your res-auth as "Application"
<res-auth>Application</res-auth>
in your deployment descriptor.
If so, you need to use, dataSource.getConnection("USERNAME","PASSWORD") in your application to work.
Thanks,
-Jagadish
[Message sent by forum member 'jr158900' (jr158900)]
http://forums.java.net/jive/thread.jspa?messageID=221645