Hi Paul.
the runtime will lookup your provider using an appctxid created by concatenating
virtual_server_name + " " + context_path
you may be registering your provider using a different id, than that used by the runtime to try to find it.
if you can debug through the src, you can see the construction of the lookup id, in
RealmAdapter.getAppContextID().
and yes I would be interested in looking at your netbeans project, if you won't mind that it may take me a day or so, before I can do so.
Ron
PS: fwiw, the fix for
https://glassfish.dev.java.net/issues/show_bug.cgi?id=4959, was checked in last night. The fix restores the ability to register a provider for the null appcontextid, and without interfering with the system apps.
[Message sent by forum member 'monzillo' (monzillo)]
http://forums.java.net/jive/thread.jspa?messageID=287565