Uploaded image for project: 'Spring Boot & Cloud'
  1. Spring Boot & Cloud
  2. SB-1165

SB 2.1.2.DR1 - sqldb test app - 'org.apache.tomcat.jdbc.pool.DataSource' could not be found

    XMLWordPrintable

Details

    Description

      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

      Attachments

        1. runtime_pod.log
          6 kB
          Libor Fuka

        Activity

          People

            ssitani Stefan Sitani
            lfuka Libor Fuka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: