This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Problem in JAAS loginmodule Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Problem in JAAS loginmodule" Watch "Problem in JAAS loginmodule" New topic
Author

Problem in JAAS loginmodule

Anurag Malaviya
Greenhorn

Joined: Jul 01, 2009
Posts: 19
Hi all

i am trying to a custom Login Module as an standalone app, which i would later use in tomcat.

Right now i am getting an error while running which is "javax.security.auth.login.LoginException: unable to instantiate LoginModule".

At first, i thought my config file is not correct. But in that case i would have got an error like " unable to config Login Module ".

Would welcome all kind of suggestions.

thanks
anurag
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

Does your login module class have a public constructor that does not take any parameters? Does it perhaps throw an exception from the constructor?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
GeeCON Prague 2014
 
subject: Problem in JAAS loginmodule