This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Security and the fly likes JAAS: No security context set Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "JAAS: No security context set" Watch "JAAS: No security context set" New topic
Author

JAAS: No security context set

Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
Hey,

I'm trying to use JAAS with JBoss 3.2, but the security context is not being set correctly. Let me tell you my steps:

login-config.xml:


jboss.xml:


ejb-jar.xml:


When I try to handle EJBContext, it throws java.lang.IllegalStateException: No security context set. I guess something is missing or could be wrong. Anybody can advice me?

Thank you!
[ September 29, 2004: Message edited by: Tiago Fernandez ]

Tiago Fernandez
http://www.tiago182.spyw.com/
 
Don't get me started about those stupid light bulbs.
 
subject: JAAS: No security context set