jaas j_security_check疑問?

quguilai發表於2007-06-05
我想簡單實現一下jaas的登陸驗證,出現了使用者名稱密碼明明是正確的,卻老是說密碼錯誤,跳到錯誤的頁面,請banq大哥和其他大哥幫我分析一下,這是哪裡出的錯呢?

應該很有可能是資料庫的錯誤?

我的資料庫表如下:
id userName password email role rolegroups
1 qugl abcd quguilai2006@163.com User roles
2 aaa aaa aaa@163.com User roles


login_config.xml裡配置如下:
<module-option name="principalsQuery">select password from user where userName=?</module-option>

<module-option name="rolesQuery">select roleid,rolegroup from user where userName=?</module-option>

請幫我分析下,錯誤出在哪裡?弄了很久了,不勝感激!

[該貼被quguilai於2007年06月05日 10:48修改過]

相關文章