0

在线问题:

connection = Factory.Connection.getConnection("filenetuat:9080/wsi/FNCEWS40MTOM"); 
    Subject sub = UserContext.createSubject(connection,"c2l.user", "$up3r2015","FileNetP8WSI"); 

上面的代码在独立的 java 代码中工作,但不在 JBoss 中:

请参阅下面的错误日志:

注意:以前我们得到:

没有属性文件:users.properties 或默认值:找到 defaultUsers.properties

我们通过参考以下链接对 Jboss 的standalone.xml 文件进行了一些更改来解决了这个问题: https ://developer.jboss.org/blogs/mukeshghildiyal/2012/01/09/enabling-the-users-and-roles -in-jboss7-and-adding-admin-console-restriction

我们需要知道,才能解决“用户未通过身份验证”的问题。我们是否需要在 jboss 中做一些更改(我们使用的是 jboss 版本 7)?

日志:

12:00:26,935 INFO  [stdout] (Thread-1 (group:HornetQ-client-global-threads-985873369)) [INFO] Recieved an object message with title saveJobRunLogService

12:00:26,948 INFO  [stdout] (org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor#2920964e-1) [ERROR] Encountered an error executing the step

12:00:26,948 INFO  [stdout] (org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor#2920964e-1) com.filenet.api.exception.EngineRuntimeException: FNRCE0040E: E_NOT_AUTHENTICATED: The user is not authenticated.
4

1 回答 1

0

尝试调用UserContext.get().pushSubject(subject);

在您获得操作系统实例之前。

于 2015-09-01T09:28:27.807 回答