syndesisio / syndesis-rest

The API for Syndesis - a flexible, customizable, cloud-hosted platform that provides core integration capabilities as a service. It leverages Red Hat's existing product architecture using OpenShift Online/Dedicated and Fuse Integration Services.
https://syndesis-staging.b6ff.rh-idev.openshiftapps.com/api/v1/
Apache License 2.0
6 stars 17 forks source link

Start-up is failing due to missing DataSource init #803

Closed dsimansk closed 6 years ago

dsimansk commented 6 years ago

@chirino may this be caused by latest merge of encryption keys?

I'm using latest template on fresh Minishift.

017-11-09 20:53:02.535  WARN [-,,,] 1 --- [           main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'schemaCheck' defined in URL [jar:file:/deployments/runtime.jar!/BOOT-INF/classes!/io/syndesis/runtime/SchemaCheck.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realTimeDB' defined in class path resource [io/syndesis/runtime/DataStoreConfiguration.class]: Unsatisfied dependency expressed through method 'realTimeDB' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dbiBean' defined in class path resource [io/syndesis/runtime/DataSourceConfiguration.class]: Unsatisfied dependency expressed through method 'dbiBean' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'javax.sql.DataSource' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
2017-11-09 20:53:02.549  INFO [-,,,] 1 --- [           main] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-11-09 20:53:02.831 ERROR [-,,,] 1 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   :

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of method dbiBean in io.syndesis.runtime.DataSourceConfiguration required a bean of type 'javax.sql.DataSource' that could not be found.
    - Bean method 'dataSource' not loaded because @ConditionalOnProperty (spring.datasource.jndi-name) did not find property 'jndi-name'
    - Bean method 'dataSource' not loaded because @ConditionalOnBean (types: org.springframework.boot.jta.XADataSourceWrapper; SearchStrategy: all) did not find any beans

Action:

Consider revisiting the conditions above or defining a bean of type 'javax.sql.DataSource' in your configuration.
chirino commented 6 years ago

That does not seem to be related to the encryption keys stuff.

chirino commented 6 years ago

I think it's due to https://github.com/syndesisio/syndesis-rest/commit/ecd76b8abe9b591b536e9b884f23e3e2b7b28364