users@glassfish.java.net

JAAS: SecurityManager and Subject

From: <forums_at_java.net>
Date: Tue, 9 Oct 2012 07:02:01 -0500 (CDT)

Hi, (Excuse me for my bad english, I speak french). I use JAAS in my JEE
application under glassfish 3. When I Try to get Subject by this instruction
:*Subject subject = Subject.getSubject( AccessController.getContext());* the
subject returned is null, and I have also *System.getSecurityManager() null*
(Security manager enabled in glassfish). I don't understand why theses
objects are null. Thank you. Ps: The same instructions work under Tomcat but
not under glassfish.

--
[Message sent by forum member 'laminos']
View Post: http://forums.java.net/node/891304