gpt4 book ai didi

java - 在 Websphere Application Server 上运行基于 Filenet 的 Web 应用程序时出现凭据异常

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:18:54 25 4
gpt4 key购买 nike

我开发了一个 REST 服务,可以从内容引擎存储中检索数据。为简单起见,我创建了具有只读权限的用户帐户并将其用于 CE 授权,使用以下代码:

UserContext context = UserContext.get();
Connection connection = Factory.Connection.getConnection("connection.url");
Subject subject = UserContext.createSubject(connection, "connection.username", "connection.password", "connection.stanza");
context.pushSubject(subject);

在开发过程中,我在本地 Tomcat 服务器上测试了我的服务,一切正常。现在,我已将该服务部署到 ContentEngine 所在的 Websphere Application Server 上,当我尝试访问我的 REST 服务时,出现以下异常:

Error 500: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.filenet.api.exception.EngineRuntimeException: FNRCS0005E: SECURITY_INVALID_CREDENTIALS: Access to the Content Engine was not allowed because the Content Engine API library or the Web Service Interface (WSI) Listener could not find the required security context information. Expected credentials were not found in the security context.

WAS 是否需要任何额外的配置才能使这种方法起作用?或者也许存在解决授权问题的更好方法?

最佳答案

我已经通过使用不同的节设法解决了这个问题。由于某种原因,我使用的那个(FileNetP8,默认值)与 Tomcat 完美配合,但与 Websphere Application Server 配合使用时出现问题。在 WAS 安全登录配置中,我发现 FileNetP8WSI 节可以解决问题。

关于java - 在 Websphere Application Server 上运行基于 Filenet 的 Web 应用程序时出现凭据异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15404357/

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