As such, I was trying to create a JAAS implementation over Jboss's web-console page. I am using the existing entry of web-console in login-config.xml which is
<application-policy name = "web-console">
<authentication>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "sufficient">
<module-option name="usersProperties">web-console-users.properties</module-option>
<module-option name="rolesProperties">web-console-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
The user anme & its role are being implemented in the web-console-users.properties & web-console-roles.properties files. The only changed that I made was that I changed the flag to "sufficient" so that I am able to use the LoginModule which I have made.
To be more precise, I got my own LoginModule class, & my main class extends httpServlet.
My jboss-web.xml file contains
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<security-domain flushOnSessionInvalidation="false">
java:/jaas/web-console</security-domain>
<context-root>/web-console</context-root>
</jboss-web>
This error appeared after I added jaas.config file in <project>/web-inf/jaas.config
myOwnLoginModule {
<path of my class file> required;
};
In my main
servlet, I call it as
loginContext = new LoginContext("myOwnLoginModule ",new MyCallBackHandler());