I get a ServeletException: Failed to authenticate a principal when I attempt to login with the DatabaseServerLoginModule. I\'m guessing the issue is either how
I was able to get help with this on the jboss as forums. My solution was to revise the markup of the rolesQuery from:
to this:
SELECT groupid, 'Roles' FROM grouptable WHERE username=?
I also had to change the encoding style to HEX. Here is my working login-config.xml.
java:/jdbc/thor_ds
SELECT password FROM usertable WHERE username = ?
SELECT groupid, 'Roles' FROM grouptable WHERE username=?
MD5
HEX