ResourceResolverFactory getServiceResourceResolver throws Exception in AEM 6.1

前端 未结 4 1844
野性不改
野性不改 2020-11-28 13:39

I want to write some data to AEM, and the below code works fine for me in AEM 6.0 but not in AEM 6.1 , always throws a Login Exception as follows:

\"Login Except

4条回答
  •  一个人的身影
    2020-11-28 14:30

    In AEM 6.1, service users must be system users, which effectively means that their node in the JCR is of type rep:SystemUser. These users cannot be used to log in normally, only by background processes. The admin user is not a system user, so you cannot use the admin user in a service user mapping like this. You have to create a new system user and assign them the appropriate permissions.

    If you would like to read more of the background on this change, take a look at https://issues.apache.org/jira/browse/SLING-3854.

提交回复
热议问题