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.

