I\'m trying to get a Custom Security Realm in Glassfish working (i tried 3.0.1 final and 3.1 B33). I read nearly all tutorials about this, but it doesn\'t not work on my Sys
Got it. Seems like newer Glassfish versions require that the Security Realm and the LoginModule are packaged as an OSGi module, which should then be copied into glassfish/modules.
Therefore i changed my pom.xml to create an OSGi bundle, which contains both the CustomRealm and the CustomLoginModule.
Found a good additional resource here:
http://blogs.oracle.com/nithya/entry/modularized_osgi_custom_realms_in
, where the Realm and it's LoginModule is build as a hk2-jar.