2016-06-16 5 views
0

Was ich erreichen möchte:IBM Mobile First Push Notification Security Test

ändern mobileSecurityTest zu customSecurityTest Push-Benachrichtigung zu erreichen.

Ich habe versucht:

Nach this link, in authenticationConfig.xml

Wenn wir diesen mobileSecurityTest Code verwenden:

<mobileSecurityTest name="PushSecurityTest"> 
     <testUser realm="PushAppRealm"/> 
     <testDeviceId provisioningType="none"/> 
    </mobileSecurityTest> 

Das Äquivalent wäre:

<customSecurityTest name="PushSecurityTest"> 
     <test realm="wl_antiXSRFRealm" /> 
     <test realm="wl_remoteDisableRealm" /> 
     <test realm="PushAppRealm" isInternalUserID="true" /> 
     <test realm="wl_deviceNoProvisioningRealm" isInternalUserID="true" /> 
    </customSecurityTest>  

Problem:

Doch nachdem ich es von mobileSecurityTest Code, um benutzerdefinierten Sicherheitstest geändert, Ich schlage diesen Fehler:

[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]

Antwort

1

Das Protokoll zeigt:

PushSecurityTest has duplicated entry with isInternalUserID=true [project EventSourceNotifications]

entfernen isInternalUserID aus PushAppRealm.

+0

Dank @Idan Adar! – user1872384