No LoginModules configured

I am trying to get a basic authenication sample working. In my servlet, I have the following code:

LoginContext lc =null;

try{

lc =new LoginContext("Verify",new VerifyUserCallbackHandler());

}catch (LoginException le){

System.out.println("Cannot create LoginContext. 1");

System.err.println(" " + le.getMessage());

}catch (SecurityException se){

System.out.println("Cannot create LoginContext. 2");

System.err.println(" " + se.getMessage());

}

try{

lc.login();

}catch (LoginException le){

System.err.println("Authentication failed:");

System.err.println(" " + le.getMessage());

}

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 java.security file to point to my jaas.config file - so I entered the following to my java.security file:

login.config.url.1=file:${java.home}/lib/security/jaas.config

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

Thanks.

[1899 byte] By [tonkadawga] at [2007-10-2 11:21:45]
# 1
no one?
tonkadawga at 2007-7-13 4:22:38 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2

ok, a little more information - when running in debug mode, the app fails at this line:

lc = new LoginContext("jaasEAR");

(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?

Thanks

tonkadawga at 2007-7-13 4:22:38 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 3
Check the contents of your jaas.config file and also that you have your server property properly defined (java.security.auth.login.config)The parameter to the LoginContext is the name of your login module as defined in this config file.-B
briandenga at 2007-7-13 4:22:38 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 4
Did you solve the problem? If so please share what went wrong. I too have a similar issue. I even tried to call the Configuration class methods getAppConfigurationEntry() and I consistently keep getting null value.
purushothaman.thambua at 2007-7-13 4:22:38 > top of Java-index,Security,Other Security APIs, Tools, and Issues...