glassfish_at_javadesktop.org wrote:
> Thank you for replying.
>
> We discovered something that has allowed us to get JDBCRealm to work. There is
> an important piece that is not covered in the developinjava article: a sun-web.xml
> configuration file that contains some role-mapping tags.
>
The security-role-mapping is needed for GlassFish application.
But one can also have a default security-role-mapping generated in
deployment time by
turning on default principal to role mapping in admin GUI and then
"restart the server".
Then all the newly deployed application will have a default principal to
role mapping if there is no security-role-mapping there.
> The example application mentioned at the very bottom of the article does contain
> a sun-web.xml file, however, and it was the missing piece in our case.
> [Message sent by forum member 'pohl' (pohl)]
>
> http://forums.java.net/jive/thread.jspa?messageID=202568
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>