The solution was to create two entries under Resources\JDBC in Glassfish. The first was to create a Connection Pool, the second was to create a JNDI entry under Resources\JDBC\JDBC Resources.
This took some fiddling and guessing. I presume that there must be a better way! Hope to find this out one day...