-
Bug
-
Resolution: Done
-
Major
-
None
-
None
I have runtime problem with our sqldb test application.
*************************** APPLICATION FAILED TO START *************************** Description: Field dataSource in com.redhat.xpass.database.service.sql.SqlDbController required a bean of type 'org.apache.tomcat.jdbc.pool.DataSource' that could not be found. The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true) The following candidates were found but could not be injected: - Bean method 'dataSource' in 'DataSourceConfiguration.Tomcat' not loaded because @ConditionalOnMissingBean (types: javax.sql.DataSource; SearchStrategy: all) found beans of type 'javax.sql.DataSource' dataSource Action: Consider revisiting the entries above or defining a bean of type 'org.apache.tomcat.jdbc.pool.DataSource' in your configuration.
Full log and test app code attached.
Tested with OpenJDK8 image: registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.5