You should actually create your JDBC resource using the admin and reference it from the sun-web.xml or context.xml. The sun-web.xml or context.xml is only to reference the existing JDBC resource. Only exception is if you use the default JDBC resources that came with GlassFish.
Thanks,
Amy
[Message sent by forum member 'amyroh' (amyroh)]
http://forums.java.net/jive/thread.jspa?messageID=237216