WebSphere Portal 6.1 puma 问题
我安装了 6.1.0.1 WebSphere Portal,并将其更新到最后推荐的修复包(包括 WAS)。使用 LDAP 服务器 (Tivoli Directory Server 6.0) 配置用户注册表。
诸如组/用户管理之类的门户应用程序可以与用户正确配合。管理控制台的管理用户/管理组也是如此。
但是,当我在应用程序中运行此类代码时:
String dn = "cn=agsgroup,cn=groups,dc=egov2g,dc=kz";
String id = "cn";
Context ctx = new InitialContext();
PumaHome service = (PumaHome) ctx.lookup(PumaHome.JNDI_NAME);
PumaProfile pp = service.getProfile();
PumaLocator pl = service.getLocator();
Group group = pl.findGroupByIdentifier(dn);
Map map = pp.getAttributes(group, Arrays.asList(new String[] {id}));
我总是收到 MemberNotFoundException
com.ibm.portal.puma.MemberNotFoundException: EJPSG0002E: Requested Member does not exist.cn=agsgroup,cn=groups,dc=egov2g,dc=kz
dn 是 100% 正确的。相同的代码适用于生产环境和另一个我的服务器。 但在其他开发人员的新安装和服务器上存在所描述的问题。
我比较了工作服务器和非工作服务器上的 wimconfig.xml 文件,没有发现任何差异。
寻找任何想法
更新 代码在 portlet 中正确运行。所以看起来当我在没有 portlet 上下文的情况下运行它时 puma 未正确初始化
I installed 6.1.0.1 WebSphere Portal, updated it to the last recommended fix packs (WAS including). Configured user registry with LDAP server (Tivoli Directory Server 6.0).
Portal applications like group/user managements work with users correctly. The same is correct for admin console's Manage Users/Manage Groups.
But when I run such code in my application:
String dn = "cn=agsgroup,cn=groups,dc=egov2g,dc=kz";
String id = "cn";
Context ctx = new InitialContext();
PumaHome service = (PumaHome) ctx.lookup(PumaHome.JNDI_NAME);
PumaProfile pp = service.getProfile();
PumaLocator pl = service.getLocator();
Group group = pl.findGroupByIdentifier(dn);
Map map = pp.getAttributes(group, Arrays.asList(new String[] {id}));
I always get a MemberNotFoundException
com.ibm.portal.puma.MemberNotFoundException: EJPSG0002E: Requested Member does not exist.cn=agsgroup,cn=groups,dc=egov2g,dc=kz
dn is 100% correct. The same code works on production and another my server.
But on new installations and servers of other developers there is the described problem.
I compared wimconfig.xml files on working and nonworking servers and couldn't find any differences.
Looking for any ideas
UPDATE
The code runs correctly in the portlet. So it looks that when I run it without portlet context puma is not initialized correctly
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了。
有必要为一些虚拟资源提供访问权限:USERS和USER_GROUPS。
这是在门户管理面板中完成的:访问 ->资源权限->虚拟资源->用户(用户组)
给予资源适当的权限(在我的例子中是所有权限)
The problem was solved.
It's necessary to provide access right for some virtual resources: USERS and USER_GROUPS.
It's done in Portal Admin Panel: Access -> Resource Permissions -> Virtual Resources -> Users (User groups)
Give appropriate permisions to the resources (in my case all permissions)