由于Derby数据库故障,Worklight 6.1应用程序无法启动

时间:2014-04-18 18:31:11

标签: ibm-mobilefirst derby worklight-server

我正在使用:

  1. WL 6.1
  2. Derby as database
  3. WAS 7
  4. 我做了什么:

    1. 执行创建2个数据库的手动步骤(使用适当的模式)
    2. 创建了2个数据源,并从WAS7 Web管理控制台进行了测试(一切正常)
    3. DB DB sample content

      在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)

      DB section

1 个答案:

答案 0 :(得分:0)

我能够通过提供自定义属性' name'来修复例外情况。在WAS DataSource中等于模式名称。模式名称实际上可以是不同的。例如,WL 6.1 DDL脚本将其定义为WRKSCHM,但WL 6.1 Info Center定义为WORKLIGHT。

因此,我首选WORKLIGHT作为模式名称并重新运行DDL脚本。之后,我添加了名称' 资源>中的自定义属性JDBC>数据源> Worklight数据库>自定义属性,如图片所示。enter image description here