[JBoss-user] [Security & JAAS/JBoss] - Re: getCallerPrincipal() throws IllegalStateException: No se

2005-07-12 Thread petertje
anonymous wrote : Also, as you said, I have not configured any "Security Domain", I am directly using my own Java API to authenticate the user against LDAP Server. If you do not use JBoss' security system, how do you expect JBoss to know wich Principal is calling the EJB??? If you need to writ

[JBoss-user] [Security & JAAS/JBoss] - Re: getCallerPrincipal() throws IllegalStateException: No se

2005-05-25 Thread ajayjadhav
Hello, I am also facing same problem with the getCallerPrincipal() method with Jboss 3.2.3. When I try to call this method the container throws an IllegalStateException saying that no security context was set. My code looks like: = public void myCustomMet

[JBoss-user] [Security & JAAS/JBoss] - Re: getCallerPrincipal() throws IllegalStateException: No se

2004-11-16 Thread Bug-C
Thanks a lot for this fast reply :) and even better you are correct and fixed my error :) The problem is that I use AndroMDA (MDA generator) to create my beans and this tool creates a stateful session bean if attributes are given to the class. Unfortunately I removed all attributes (because I d

[JBoss-user] [Security & JAAS/JBoss] - Re: getCallerPrincipal() throws IllegalStateException: No se

2004-11-16 Thread _alex
>From my point of view: 1) getCallerPrincipal will throw an exception in case you deploy your bean outside of a security domain; 2) in case your bean is stateless session bean, the EntityContext method getCallerPrincipal is prohibited to call inside ejbCreate or ejbRemove methods (see specific