【问题标题】:IBM Mobile First Push Notification Security TestIBM Mobile First Push Notification 安全测试
【发布时间】:2016-06-16 04:01:18
【问题描述】:

我想要达到的目标:

将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 代码更改为自定义安全测试后,我遇到了这个错误:

[错误] FWLST0003E: ========= 启动项目失败 /EventSourceNotifications [项目 EventSourceNotifications] 错误 在 URL 中定义名称为“taskManager”的 bean [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 无法解析对 bean 'worklightAuthenticationService' 的引用 同时设置bean属性'authenticationService';嵌套异常 是 org.springframework.beans.factory.BeanCreationException: 错误 创建名称为“worklightAuthenticationService”的bean 网址 [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 无法解析对 bean 'loginConfigurationServiceBean' 的引用,而 设置 bean 属性“loginConfigurationService”;嵌套异常是 org.springframework.beans.factory.BeanCreationException:错误 在 URL 中定义名称为“loginConfigurationServiceBean”的 bean [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 调用 init 方法失败;嵌套异常是 java.lang.RuntimeException: FWLSE0251E: conf/authenticationConfig.xml: PushSecurityTest 有重复的条目,isInternalUserID=true [项目 EventSourceNotifications]

[ERROR] 在 URL 中创建名称为“taskManager”的 bean 时出错 [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 无法解析对 bean 'worklightAuthenticationService' 的引用 同时设置bean属性'authenticationService';嵌套异常 是 org.springframework.beans.factory.BeanCreationException: 错误 创建名称为“worklightAuthenticationService”的bean 网址 [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 无法解析对 bean 'loginConfigurationServiceBean' 的引用,而 设置 bean 属性“loginConfigurationService”;嵌套异常是 org.springframework.beans.factory.BeanCreationException:错误 在 URL 中定义名称为“loginConfigurationServiceBean”的 bean [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 调用 init 方法失败;嵌套异常是 java.lang.RuntimeException: FWLSE0251E: conf/authenticationConfig.xml: PushSecurityTest 有重复的条目,isInternalUserID=true [项目 EventSourceNotifications] 创建具有名称的 bean 时出错 'taskManager' 在 URL 中定义 [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 无法解析对 bean 'worklightAuthenticationService' 的引用 同时设置bean属性'authenticationService';嵌套异常 是 org.springframework.beans.factory.BeanCreationException: 错误 创建名称为“worklightAuthenticationService”的bean 网址 [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 无法解析对 bean 'loginConfigurationServiceBean' 的引用,而 设置 bean 属性“loginConfigurationService”;嵌套异常是 org.springframework.beans.factory.BeanCreationException:错误 在 URL 中定义名称为“loginConfigurationServiceBean”的 bean [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 调用 init 方法失败;嵌套异常是 java.lang.RuntimeException: FWLSE0251E: conf/authenticationConfig.xml: PushSecurityTest 有重复的条目,isInternalUserID=true [项目 EventSourceNotifications]

[错误] EventSourceNotifications: worklight///10.128.1.179: 2016-06-16T03:40:52.129Z:创建名为“taskManager”的 bean 时出错 在 URL 中定义 [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 无法解析对 bean 'worklightAuthenticationService' 的引用 同时设置bean属性'authenticationService';嵌套异常 是 org.springframework.beans.factory.BeanCreationException: 错误 创建名称为“worklightAuthenticationService”的bean 网址 [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 无法解析对 bean 'loginConfigurationServiceBean' 的引用,而 设置 bean 属性“loginConfigurationService”;嵌套异常是 org.springframework.beans.factory.BeanCreationException:错误 在 URL 中定义名称为“loginConfigurationServiceBean”的 bean [wsjar:file:/Users/keatooon/eclipseWorkspaceJustinPush1/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: 调用 init 方法失败;嵌套异常是 java.lang.RuntimeException: FWLSE0251E: conf/authenticationConfig.xml: PushSecurityTest 有重复的条目,isInternalUserID=true [项目 EventSourceNotifications]

【问题讨论】:

    标签: push-notification ibm-mobilefirst


    【解决方案1】:

    日志显示:

    PushSecurityTest 有重复的条目,isInternalUserID=true [project EventSourceNotifications]

    PushAppRealm 中删除isInternalUserID

    【讨论】:

    • 感谢@Idan Adar!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多