Что я хочу достичь:IBM Mobile First Push уведомление Security Test
Изменение mobileSecurityTest в customSecurityTest для достижения толчок уведомления.
Я пробовал:
Согласно this link, в authenticationConfig.xml
Если мы используем этот mobileSecurityTest код:
<mobileSecurityTest name="PushSecurityTest">
<testUser realm="PushAppRealm"/>
<testDeviceId provisioningType="none"/>
</mobileSecurityTest>
эквивалент будет:
<customSecurityTest name="PushSecurityTest">
<test realm="wl_antiXSRFRealm" />
<test realm="wl_remoteDisableRealm" />
<test realm="PushAppRealm" isInternalUserID="true" />
<test realm="wl_deviceNoProvisioningRealm" isInternalUserID="true" />
</customSecurityTest>
Проблема:
Однако, после того, как я изменил его от mobileSecurityTest кода теста пользовательского безопасности, я ударяя эту ошибку:
[ERROR ] FWLST0003E: ========= Failed starting project /EventSourceNotifications [project EventSourceNotifications] Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'loginConfigurationServiceBean' while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: FWLSE0251E: conf/authenticationConfig.xml: PushSecurityTest has duplicated entry with isInternalUserID=true [project EventSourceNotifications]
[ERROR ] Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'loginConfigurationServiceBean' while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: FWLSE0251E: conf/authenticationConfig.xml: PushSecurityTest has duplicated entry with isInternalUserID=true [project EventSourceNotifications] Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'loginConfigurationServiceBean' while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: FWLSE0251E: conf/authenticationConfig.xml: PushSecurityTest has duplicated entry with isInternalUserID=true [project EventSourceNotifications]
[ERROR ] EventSourceNotifications: worklight///10.128.1.179: 2016-06-16T03:40:52.129Z: Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'loginConfigurationServiceBean' while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: FWLSE0251E: conf/authenticationConfig.xml: PushSecurityTest has duplicated entry with isInternalUserID=true [project EventSourceNotifications]
Спасибо @ Идан Адар! – user1872384