我正在使用:
我做了什么:
在WAS 7启动时,我收到WL应用程序无法启动的错误消息
[18.4.14 20.40.18:503 FET] 00000000 ResourceMgrIm I WSVR0049I: Binding Worklight Database as jdbc/WorklightDS
[18.4.14 20.40.18:507 FET] 00000000 ResourceMgrIm I WSVR0049I: Binding Worklight Reports Database as jdbc/WorklightReportsDS
...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in URL [wsjar:file:/C:/IBM/Worklight/WorklightServer/worklight-jee-library.jar!/conf/core.xml]: Cannot resolve reference to bean 'brokerSessionFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerSessionFactory' defined in URL [wsjar:file:/C:/IBM/Worklight/WorklightServer/worklight-jee-library.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'rssBrokerDS' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rssBrokerDS' defined in URL [wsjar:file:/C:/IBM/Worklight/WorklightServer/worklight-jee-library.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'worklight-direct' while setting bean property 'targetDataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklight-direct' defined in URL [wsjar:file:/C:/IBM/Worklight/WorklightServer/worklight-jee-library.jar!/conf/spring-server-core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: FWLSE0206E: The project /MyProject failed to initialize, because the project database schema for data source jdbc:derby:C:\ProgramData\IBM\Worklight\derby_1\WRKLGHT is from version N/A, which is not supported by the server from version 6.1.0.00.20131126-0630. Use the Worklight ant tasks to upgrade the project database schema. [project MyProject]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
答案 0 :(得分:0)
我能够通过提供自定义属性' name'来修复例外情况。在WAS DataSource中等于模式名称。模式名称实际上可以是不同的。例如,WL 6.1 DDL脚本将其定义为WRKSCHM,但WL 6.1 Info Center定义为WORKLIGHT。
因此,我首选WORKLIGHT作为模式名称并重新运行DDL脚本。之后,我添加了名称' 资源>中的自定义属性JDBC>数据源> Worklight数据库>自定义属性,如图片所示。