Hello Everybody.
 I'm migrating from JBoss4.01 to JBoss4.04 but I found a problem when I want to use my Custom LoginModule, I have the following class:
 public class MyLoginModule extends UsernamePasswordLoginModule {
 public MyLoginModule() {....}
 public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) {...}
 protected String getUsersPassword() throws LoginException
 {...}
 protected Group[] getRoleSets() throws LoginException
 {...}
 }
in the .../default/conf/login-config.xml
 <application-policy name="Myweb">
 <login-module code="authentication.MyLoginModule"
 flag="required">
 </login-module>
 </application-policy>
in each file *.war in ../WEB-INF/jboss-web.xml
<security-domain>java:/jaas/Myweb</security-domain>
this configuration worked well with JBoss4.01 but when I use JBoss4.04 the debugger and the log show that getRoleSets() is not used then I can not get the authentication.
Do you know if I need to declare another thing??
Any help will be appreciated
Leo
Are u even sure that ur login module is being called? Look for trace level logging in the Security FAQ at the beginning of this forum.