Pregunta

I am using:

  1. WL 6.1
  2. Derby as database
  3. WAS 7

What I have done:

  1. Performed manual steps for creation 2 databases (with proper schemas)
  2. Created 2 datasources and tested from WAS7 web admin console (all works fine)

DB DB sample content

On WAS 7 startup I have error messages that WL application can not start

[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

¿Fue útil?

Solución

I was able to fix the exceptions by providing custom property 'name' in WAS DataSource equal to schema name. The schema name actually can be different. For example, WL 6.1 DDL scripts define it as WRKSCHM, but WL 6.1 Info Center as WORKLIGHT.

So, I preferred WORKLIGHT as schema name and re-run DDL scripts. After that I have added the 'name' custom property in Resources > JDBC > Data sources > Worklight Database > Custom properties as shown on the image.enter image description here

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top