Glassfish 3.1 somehow expects that config properties for username and password are actually named "username" and "password" - else these are not passed on to PrivateCredentials, the latter having null values for them.
Cuckoo names are jcoUser and jcoPassword, beginning with "jco" like all properties that are passed on to the Java Connector.
To make things work with Glassfish, those two properties shall be renamed to "username" and "password".
Anonymous
Diff: