Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invoking JAAS from EJB

 
mohamed zafer
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello There,
I have developed a PasswordLoginModule. Also updated the config details in the J2RE_HOME/lib/security/java.security.
When I run the authentication client form an application I am able to successfully do the Password authentication. Now, when I run the client i.e, invoke
lc = new LoginContext("password",MYCallBackHandler);
from inside a EJB I get the following error
".LoginException: No LoginModules configured for password"
Why is it so.. I am using Pramati Server on a Win2k PC
Mohamed Zafer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic