users@glassfish.java.net

Re: security-role-mapping doesn't appear to be working

From: Bobby Bissett - Javasoft <Robert.Bissett_at_Sun.COM>
Date: Wed, 16 May 2007 17:34:02 -0400

glassfish_at_javadesktop.org wrote:
> Below is my configuration information. Authentication is successfully
> completing, but it doesn't seem that the security roles are being
> properly mapped. Any help figuring out why this isn't working would
> be much appreciated.
>
> I'm using the following version of Glassfish: Sun Java System
> Application Server Platform Edition 9.0_01 (build b02-p01)

One quick question before diving further: Is this app in a standalone
war file or in an ear file? If the war file is a submodule of a larger
application, then the security mapping must be in the top-level
sun-application.xml file rather than in sun-web.xml. This has been fixed
in 9.1, but you would still be seeing it in 9.0:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=2475

If that isn't the case, then let me know and I'll look further.

Cheers,
Bobby