You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Krygowski <ja...@shaws.com> on 2002/09/04 14:57:54 UTC
JAASRealm SecurityException unable to instantiate LoginConfiguration
Hey All-
I'm trying to get the standard JAASMemoryLoginModule in Tomcat 4.1.9beta to
work and haven't had much success. After tinkering with JAASRealm and
adding the following exception catch block:
LoginContext loginContext = null;
try {
loginContext = new LoginContext
(appName, new JAASCallbackHandler(this, username,
credentials));
} catch (LoginException e) {
log(sm.getString("jaasRealm.loginException", username), e);
return (null);
} catch (Exception e) {
log(sm.getString("jaasRealm.loginException", username), e);
return (null);
}
I found that the instantiation of LoginContext results in a
java.lang.SecurityException with a detail message of "unable to instantiate
LoginConfiguration"
I'm using the standard 4.1.9beta install (standalone) and I've modified my
catalina.bat file so that the JAAS env variable is getting set
(-Djava.security.auth.login.config=C:/java/apache/jakarta-tomcat-4.1.9/conf/
auth.conf).
Can anyone point me toward a solution here?
thanks,
jk
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>