Websphere 6.1 ejb3 验证用户并映射到角色
我正在使用 websphere 6.1 上的 ejb3 功能包将应用程序从旧的 ejb2 设置升级为使用 ejb3。
我有一个 ServletContextListener,它在 servlet 上下文启动时执行一些初始化,此初始化的一部分涉及调用 ejb。
服务器设置为使用 FileRegistrySample 作为其自定义用户注册表,并且在旧的 ejb2 设置上,它成功地将系统验证为管理控制台用户,并将其映射到我为其设置的内部角色。
现在我已经转移到 ejb3,但是用户正在被识别,但它告诉我用户没有任何必需的角色...
我想我的问题是 websphere 或规范是否改变了该空间中的任何内容可能是导致此问题的原因,或者更可能是我在升级过程中更改的某些内容导致的。
I'm upgrading an application from an old ejb2 setup to use ejb3's using the ejb3 feature pack on websphere 6.1
I've got a ServletContextListener which does some initialisation when the servlet context starts, part of this initialisation involves calling ejb's.
The server is set up to use FileRegistrySample for its custom user registry, and on the old ejb2 setup it succesfully authenticates the system as the admin console user, and maps it to the Internal role I've set up for it.
Now that I've moved to ejb3 however, the user is being recognised, but it's telling me the user does not have any of the required roles...
I suppose my question is whether websphere or the spec has changed anything in that space that may be causing this, or whether it's more likely that something I've changed as part of the upgrade has caused it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个 ibm-application-bnd.xmi 文件将用户和组映射到角色,该文件必须位于 my_app.ear/META-INF 中。 与 ejb3 功能包相比,似乎没有任何变化,我错误地删除了它。
There is an ibm-application-bnd.xmi file that maps users and groups to role's, this file must be in my_app.ear/META-INF. Nothing appears to have changed with respect to that with the ejb3 feature pack, I had incorrectly removed it.