File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes JAAS - No LoginModules configured Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "JAAS - No LoginModules configured" Watch "JAAS - No LoginModules configured" New topic

JAAS - No LoginModules configured

Dana Malach

Joined: Feb 06, 2006
Posts: 3
I am trying to get a basic authenication sample working. In my servlet, I have the following code:

However, I keep getting the following error when I start my server (WSAD 5.1):
No LoginModules configured for Verify

I've done some searching on this and all came up with pretty much the same answer. I needed to update my file to point to my jaas.config file - so I entered the following to my file:

That didn't work - does anyone have any ideas what else I am missing?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Welcome to JavaRanch.

We have a Security forum, where this question is a better fit, so I'm going to move this thread there.
Dana Malach

Joined: Feb 06, 2006
Posts: 3
thanks for moving this thread - I didn't see the security forum when I first posted.
Dana Malach

Joined: Feb 06, 2006
Posts: 3
ok, a little more information - when running in debug mode, the app fails at this line:

(I removed the callbackhandler to troubleshoot)
My LoginContext never gets created. I was reading that the name - 'jaasEAR' should be the name of the app. I checked in the admin console and 'jaasEAR' is the name of the app, but obviously this is wrong. Anyone have any advice on how to properly set up this LoginContext?

I agree. Here's the link:
subject: JAAS - No LoginModules configured
jQuery in Action, 3rd edition