IBM-Worklight:启动项目失败

时间:2018-11-19 10:39:58

标签: java ldap ibm-mobilefirst websphere worklight-server

我将mobilefirst运行时环境添加到配置中。在服务器配置工具中,运行时环境将显示并正在运行。但是我的新运行时环境未显示在MobileFirst Operation Console中。日志中显示以下错误:

  

[17.11.18 3:15:26:218 MSK] 0000002e   com.worklight.server.bundle.project.JeeProjectActivator E   FWLST0003E:=========失败的启动项目/ RusGidroMobileSD   [RusGidroMobileSD项目]   org.springframework.beans.factory.BeanCreationException:错误   在URL中创建名称为“ taskManager”的bean   [wsjar:文件:/ C:/Program%20Files/IBM/WebSphere/Liberty/usr/shared/resources/RusGidroMobileSD/lib/worklight-jee-library.jar!/conf/core.xml]:   无法解析对bean'worklightAuthenticationService'的引用   设置bean属性“ authenticationService”时;嵌套异常   是org.springframework.beans.factory.BeanCreationException:错误   创建名称为“ worklightAuthenticationService”的bean,定义于   网址   [wsjar:文件:/ C:/Program%20Files/IBM/WebSphere/Liberty/usr/shared/resources/RusGidroMobileSD/lib/worklight-jee-library.jar!/conf/core.xml]:   在以下情况下无法解析对bean'loginConfigurationServiceBean'的引用   设置bean属性'loginConfigurationService';嵌套异常为   org.springframework.beans.factory.BeanCreationException:错误   在URL中创建名称为“ loginConfigurationServiceBean”的bean   [wsjar:文件:/ C:/Program%20Files/IBM/WebSphere/Liberty/usr/shared/resources/RusGidroMobileSD/lib/worklight-jee-library.jar!/conf/core.xml]:   调用init方法失败;嵌套异常为   java.lang.IllegalArgumentException:无法解析占位符   字符串值中的'com.digdes.rusgidro.mobilesd.ldap.ldapProviderUrl'   “ $ {com.digdes.rusgidro.mobilesd.ldap.ldapProviderUrl}”在   org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:334)     在   org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1419)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)     在   org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:293)     在   org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)     在   org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)     在   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)     在   org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)     在   org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934)     在   org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)     在   com.worklight.server.bundle.project.JeeProjectActivator.loadSpringConfiguration(JeeProjectActivator.java:467)     在   com.worklight.server.bundle.project.JeeProjectActivator.access $ 400(JeeProjectActivator.java:57)     在   com.worklight.server.bundle.project.JeeProjectActivator $ 1.run(JeeProjectActivator.java:223)     在   com.worklight.server.bundle.project.JeeProjectActivator.contextInitialized(JeeProjectActivator.java:280)     在   com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:2388)     在com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1048)     在com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6404)     在   com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVirtualHost.java:446)     在   com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApplication(DynamicVirtualHost.java:441)     在   com.ibm.ws.webcontainer.osgi.WebContainer.startWebApplication(WebContainer.java:761)     在   com.ibm.ws.webcontainer.osgi.WebContainer.startModule(WebContainer.java:739)     在   com.ibm.ws.app.manager.web.internal.WebModuleHandlerImpl.deployModule(WebModuleHandlerImpl.java:106)     在   com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.deployModule(DeployedAppInfoBase.java:574)     在   com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.deployModules(DeployedAppInfoBase.java:484)     在   com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.deployApp(DeployedAppInfoBase.java:431)     在   com.ibm.ws.app.manager.war.internal.WARApplicationHandlerImpl.install(WARApplicationHandlerImpl.java:73)     在   com.ibm.ws.app.manager.internal.statemachine.StartAction.execute(StartAction.java:139)     在   com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.enterState(ApplicationStateMachineImpl.java:1166)     在   com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.run(ApplicationStateMachineImpl.java:779)     在java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)     在java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)     在java.lang.Thread.run(未知源)造成原因:   org.springframework.beans.factory.BeanCreationException:错误   创建名称为“ worklightAuthenticationService”的bean,定义于   网址   [wsjar:文件:/ C:/Program%20Files/IBM/WebSphere/Liberty/usr/shared/resources/RusGidroMobileSD/lib/worklight-jee-library.jar!/conf/core.xml]:   在以下情况下无法解析对bean'loginConfigurationServiceBean'的引用   设置bean属性'loginConfigurationService';嵌套异常为   org.springframework.beans.factory.BeanCreationException:错误   在URL中创建名称为“ loginConfigurationServiceBean”的bean   [wsjar:文件:/ C:/Program%20Files/IBM/WebSphere/Liberty/usr/shared/resources/RusGidroMobileSD/lib/worklight-jee-library.jar!/conf/core.xml]:   调用init方法失败;嵌套异常为   java.lang.IllegalArgumentException:无法解析占位符   字符串值中的'com.digdes.rusgidro.mobilesd.ldap.ldapProviderUrl'   “ $ {com.digdes.rusgidro.mobilesd.ldap.ldapProviderUrl}”在   org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:334)     在   org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1419)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)     在   org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:293)     在   org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)     在   org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)     在   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)     在   org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)     ... 34更多原因:   org.springframework.beans.factory.BeanCreationException:错误   在URL中创建名称为“ loginConfigurationServiceBean”的bean   [wsjar:文件:/ C:/Program%20Files/IBM/WebSphere/Liberty/usr/shared/resources/RusGidroMobileSD/lib/worklight-jee-library.jar!/conf/core.xml]:   调用init方法失败;嵌套异常为   java.lang.IllegalArgumentException:无法解析占位符   字符串值中的'com.digdes.rusgidro.mobilesd.ldap.ldapProviderUrl'   “ $ {com.digdes.rusgidro.mobilesd.ldap.ldapProviderUrl}”在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1514)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)     在   org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:293)     在   org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)     在   org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)     在   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)     在   org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)     ... 44更多原因:java.lang.IllegalArgumentException:无法   解决占位符   字符串值中的'com.digdes.rusgidro.mobilesd.ldap.ldapProviderUrl'   “ $ {com.digdes.rusgidro.mobilesd.ldap.ldapProviderUrl}”在   org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:173)     在   org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:125)     在   org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.parseStringValue(PropertyPlaceholderConfigurer.java:241)     在   com.worklight.server.bundle.api.WorklightConfiguration.parseStringValue(WorklightConfiguration.java:191)     在   com.worklight.core.auth.impl.LoginConfigurationServiceBean.resolveValue(LoginConfigurationServiceBean.java:698)     在   com.worklight.core.auth.impl.LoginConfigurationServiceBean.getMap(LoginConfigurationServiceBean.java:685)     在   com.worklight.core.auth.impl.LoginConfigurationServiceBean.createInstance(LoginConfigurationServiceBean.java:611)     在   com.worklight.core.auth.impl.LoginConfigurationServiceBean.processLoginModules(LoginConfigurationServiceBean.java:216)     在   com.worklight.core.auth.impl.LoginConfigurationServiceBean.afterPropertiesSet(LoginConfigurationServiceBean.java:156)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)     ...还有51个

你能帮我吗?

1 个答案:

答案 0 :(得分:1)

您已部署了一个适配器,该适配器在尝试作为运行时同步的一部分进行初始化时会引发未捕获的异常。看到这个:

Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 
Could not resolve placeholder 'com.digdes.rusgidro.mobilesd.ldap.ldapProviderUrl' 
in string value "${com.digdes.rusgidro.mobilesd.ldap.ldapProviderUrl}

您应该解决此错误或适当的异常处理-确保捕获到异常。