gpt4 book ai didi

java - jdbcrealm.invaliduserreason Web 登录失败 : com. sun.enterprise.security.auth.login.common.LoginException:登录失败:安全异常

转载 作者:行者123 更新时间:2023-11-30 08:26:21 24 4
gpt4 key购买 nike

我试过这个教程 http://java.dzone.com/articles/jdbc-realm-and-form-based使用 GlassFish 4 并出现错误:

SEVERE: jdbcrealm.invaliduserreason WARNING: WEB9102: Web Login Failed: com.sun.enterprise.security.auth.login.common.LoginException: Login failed: Security Exception

我尝试了许多不同的事情,例如将日志级别设置为最佳,考虑了表/列名的区分大小写,在算法声明中添加了“无”( SEVERE: jdbcrealm.invaliduserreason WEB9102: Web Login Failed),尝试了不同的密码哈希(LoginException: Login failed: Security Exception) ), setSHA-256 in Password Encryption Algorithm and in Digest Alogirthm 但没有一个建议的解决方案对我有用。

我认为问题与“密码加密算法:”语句有关,因为该“密码加密算法:”在教程中不存在(他使用的是 Glassfish 3.x)

这是我当前的 Glassfish 配置。 enter image description here

有人知道我还能尝试什么吗?

最佳答案

好的,将字符集设置为 UTF-8 后,它似乎可以正常工作。我也可以推荐视频http://www.youtube.com/watch?v=1xsU6juUZd0它正在使用 glassfish 4。

关于java - jdbcrealm.invaliduserreason Web 登录失败 : com. sun.enterprise.security.auth.login.common.LoginException:登录失败:安全异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21607087/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com