从worklight 6.1迁移到7.1

时间:2016-10-15 14:28:01

标签: migration ibm-mobilefirst single-sign-on

我正在将工作灯项目从WL 6.1迁移到MobileFirst 7.1。但是当在MobileFirst Studio 7.1中部署应用程序时,我收到了此错误

    error creating bean with name 'taskManager' defined in URL [wsjar:file:/C:/workspace/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:/C:/workspace/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:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
[ERROR   ] FWLST0003E: ========= Failed starting project /Common_Shell [project Common_Shell]
Error creating bean with name 'taskManager' defined in URL [wsjar:file:/C:/workspace/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:/C:/workspace/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:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
[ERROR   ] Error creating bean with name 'taskManager' defined in URL [wsjar:file:/C:/workspace/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:/C:/workspace/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:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
Error creating bean with name 'taskManager' defined in URL [wsjar:file:/C:/workspace/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:/C:/workspace/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:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
[ERROR   ] Common_Shell: worklight///192.168.181.1: 2016-10-15T13:57:56.842Z: Error creating bean with name 'taskManager' defined in URL [wsjar:file:/C:/workspace/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:/C:/workspace/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:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
[ERROR   ] SRVE0315E: An exception occurred: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: java.lang.Throwable: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed&#59; nested exception is java.lang.NullPointerException
    at com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized(AuthenticationFilter.java:589)
    at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:145)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206)
    at [internal classes]
    at com.worklight.analytics.AnalyticsFilter.doFilter(AnalyticsFilter.java:124)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206)
    at [internal classes]
Caused by: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: java.lang.Throwable: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
    ... 8 more

我试图找出可能导致该错误的原因,我发现从sso="true"删除ssoDeviceLoginModuleauthenticationConfig.xml时,部署成功完成

我知道ssossoDeviceLoginModule的不一致配置可能会导致一些错误。但我相信它是一致的,因为它在WL6.1上也能正常工作。

修改

  • 我正在使用两个不同版本的worklight studio(6.1& 7.1) 两个项目的两个独立工作区。
  • 我正在尝试使用worklight studio进行部署。(右键单击 - >运行AS - >在MobileFirst Dev Server上运行)

1 个答案:

答案 0 :(得分:0)

你的问题缺乏很多细节。我的建议是确保您在干净的环境中进行项目迁移。

  1. 安装Eclipse Mars。
  2. 为其创建一个新工作区。
  3. 在其上安装MobileFirst Studio 7.1。
  4. 在Eclipse with Worklight Studio 6.1中,导出项目
  5. 使用MobileFirst Studio v7.1将项目导入Eclipse
  6. 导入应该通过。
    如果没有,您需要打开PMR并将您的项目提供给支持团队。 Stack Overflow不是这个问题的媒介。