我正在将工作灯项目从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; 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"
删除ssoDeviceLoginModule
和authenticationConfig.xml
时,部署成功完成
我知道sso
和ssoDeviceLoginModule
的不一致配置可能会导致一些错误。但我相信它是一致的,因为它在WL6.1上也能正常工作。
修改
答案 0 :(得分:0)
你的问题缺乏很多细节。我的建议是确保您在干净的环境中进行项目迁移。
导入应该通过。
如果没有,您需要打开PMR并将您的项目提供给支持团队。 Stack Overflow不是这个问题的媒介。