Trace logging shows that the principal queries against the user and role table are executed, but where they successful or not ? Seems not.
The [clear] means, that the password in the database is expected in clear text. Checked this by updating the password in the database from MD5 / BASE64 encrypted valued to clear text password.
Will replace
<clear-password-mapper password-index="1"/>
with
<simple-digest-mapper algorithm="simple-digest-md5" password-index="1"/>
and try again.
16.09. 22:19:10,255 TRACE [org.wildfly.security.http.servlet#<init>] Created ServletSecurityContextImpl enableJapi=true, integratedJaspi=true, applicationContext=default-host /web-cor2l-dev
16.09. 22:19:10,258 TRACE [org.wildfly.security.http.servlet#authenticate] No AuthConfigProvider for layer=HttpServlet, appContext=default-host /web-cor2l-dev
16.09. 22:19:10,258 TRACE [org.wildfly.security.http.servlet#authenticate] JASPIC Unavailable, using HTTP authentication.
16.09. 22:19:10,259 TRACE [org.wildfly.security#restoreIdentity] No CachedIdentity to restore.
16.09. 22:19:10,260 TRACE [org.wildfly.security#doCreate] Created HttpServerAuthenticationMechanism [org.wildfly.security.auth.server.SecurityIdentityServerMechanismFactory$1@42b1ad96] for mechanism [FORM]
16.09. 22:19:10,261 TRACE [org.wildfly.security#handleOne] Handling SocketAddressCallback
16.09. 22:19:10,263 TRACE [org.wildfly.security#handleOne] Handling MechanismInformationCallback type='HTTP' name='FORM' host-name='sb2000' protocol='http'
16.09. 22:19:10,265 TRACE [org.wildfly.security#handleOne] Handling CachedIdentityAuthorizeCallback: principal = null authorizedIdentity = null
16.09. 22:19:10,460 TRACE [org.wildfly.security#assignName] Principal assigning: [mbi], pre-realm rewritten: [mbi], realm name: [mbisso], post-realm rewritten: [mbi], realm rewritten: [mbi]
16.09. 22:19:10,486 TRACE [org.wildfly.security#getIdentity] Executing principalQuery SELECT password FROM mbi_juser WHERE username = ? AND is_activ = 1 with value mbi
16.09. 22:19:10,563 TRACE [org.wildfly.security#map] Key Mapper: Password credential created using algorithm column value [clear]
16.09. 22:19:10,570 TRACE [org.wildfly.security#getIdentity] Executing principalQuery SELECT role FROM mbi_jrole WHERE username = ? with value mbi
16.09. 22:19:10,676 TRACE [org.wildfly.security.http.servlet#<init>] Created ServletSecurityContextImpl enableJapi=true, integratedJaspi=true, applicationContext=default-host /web-cor2l-dev
16.09. 22:19:10,678 TRACE [org.wildfly.security.http.servlet#authenticate] No AuthConfigProvider for layer=HttpServlet, appContext=default-host /web-cor2l-dev
16.09. 22:19:10,678 TRACE [org.wildfly.security.http.servlet#authenticate] JASPIC Unavailable, using HTTP authentication.
16.09. 22:19:10,679 TRACE [org.wildfly.security#restoreIdentity] No CachedIdentity to restore.
16.09. 22:19:10,680 TRACE [org.wildfly.security#doCreate] Created HttpServerAuthenticationMechanism [org.wildfly.security.auth.server.SecurityIdentityServerMechanismFactory$1@46a9d77f] for mechanism [FORM]
16.09. 22:19:10,681 TRACE [org.wildfly.security#handleOne] Handling SocketAddressCallback
16.09. 22:19:10,682 TRACE [org.wildfly.security#handleOne] Handling MechanismInformationCallback type='HTTP' name='FORM' host-name='sb2000' protocol='http'
16.09. 22:19:10,683 TRACE [org.wildfly.security.http.form#attemptReAuthentication] Trying to re-authenticate session qJKV2XVG1OsAKDDrvkphHZnHToG2t8We8vVpoZ2F. Request URI: [http://sb2000:8080/web-cor2l-dev/LoginError.xhtml], Context path: [/web-cor2l-dev] 16.09. 22:19:10,684 TRACE [org.wildfly.security#handleOne] Handling CachedIdentityAuthorizeCallback: principal = null authorizedIdentity = null