I made the configuration as the reference told.
<bean id="jaasAuthenticationProvider" class="com.genersoft.platform.security.aa.authenti cation.jaas.JaasAuthenticationProvider">
<property name="loginConfig">
<value>/WEB-INF/security/jaas.config</value>
</property>
<property name="loginContextName">
<value>NamePassword</value>
</property>
<property name="callbackHandlers">
<list>
but It didn't work .
the application raise an exception :
javax.security.auth.login.LoginException: 没有为 NamePassword 配置 LoginModule
in English, it means "No configuration for NamePassword LoginModule"
I change the code of JaasAuthenticationProvider.java
add one statement at the end of the afterPropertiesSet() method:
System.setProperty("java.security.auth.login.confi g","="+loginConfig.getURL().toString());
and then the problem is gone. the LoginModule is created successfully.
I am a beginner on java Security, and I am not sure why the problem occur, and why the problem is solved .
give me some advice please .
by the way , I am useing websphere V5.1


