无法加载 JDBC 领域用户的组
我的 jdbcRealm 不知何故从 GlassFish 中被魔法删除了。现在,当我尝试将其添加回来时,出现以下错误。
SEVERE: SEC1111: Cannot load group for JDBC realm user [admin].
WARNING: WEB9102: Web Login Failed: com.sun.enterprise.security.auth.login.common.LoginException: Login failed: Security Exception
WARNING: Exception
com.sun.enterprise.security.auth.login.common.LoginException: Login failed: Security Exception
at com.sun.enterprise.security.auth.login.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:394)
根据我在这里看到的其他答案,罪魁祸首通常是用作列名称的保留字,但这似乎不是我的情况的问题(请参见下面的屏幕截图)。我们最近进行了一些数据库模型更改,因此我必须在 web.xml 和 glassfish-web.xml 中重新配置角色到组的映射。角色有5个,用户之间是1:1的映射。
My jdbcRealm has somehow gotten deleted by magic from GlassFish. Now when I try to add it back in, I get the following error.
SEVERE: SEC1111: Cannot load group for JDBC realm user [admin].
WARNING: WEB9102: Web Login Failed: com.sun.enterprise.security.auth.login.common.LoginException: Login failed: Security Exception
WARNING: Exception
com.sun.enterprise.security.auth.login.common.LoginException: Login failed: Security Exception
at com.sun.enterprise.security.auth.login.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:394)
Based on the other answers I've seen on here, the culprit is usually a reserved word being used as a column name but this doesn't seem to be the problem in my case (see screenshot below). We recently had some database model changes so I had to reconfigure the mappings for roles to groups in web.xml and glassfish-web.xml. There are five roles and they are a 1:1 mapping between users.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论