U probably have a typ0 somewhere. R u specifying the security domain string properly in the LoginContext constructor? Does that string match what you specified in the security-domain tag in the jboss.xml?
The other configuration is not performed in addition, it is performed when the name passed to the LoginContext does not match any other configuration entry.
Hmmm, the tag in the config "myentry" is identical to the one in jboss.xml (<security-domain>java:/jaas/myentry</security-domain>). The Client-side name "myentry" passed to LoginContext should not matter, but it is the same, too. Also, as I described, the DatabaseServerLoginModule (which is configured ONLY in my config) IS called, (so the name is found) as I get the debug info in jboss-console. But after this the "other"-Config with it's UsersRolesLoginModule is called IN ADDITION, this one fails and so the overall authentication fails. Weird?!
Then post your auth.conf
Here is my auth.conf: (removed comments)
principalsQuery="select Password from Principals where PrincipalID=?"
rolesQuery="select Role, RoleGroup from Roles where PrincipalID=?"