none
Azure key value version 2.1.6 gives Reason: Failed to determine a suitable driver class RRS feed

  • Question

  • I gave below dependency for Azure key vault in pom.xml changed version from 2.1.2 to 2.1.6

    We are retrieving all the database source and queue configurations from key vault.It works fine if azure key vault version is 2.1.2 but fails if its changed to 2.1.6.

    <dependency>
        <groupId>com.microsoft.azure</groupId>
        <artifactId>azure-keyvault-secrets-spring-boot-starter</artifactId>
        <version>2.1.6</version>
    </dependency>

    After running the application, gave the below error

    Description:

    Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

    Reason: Failed to determine a suitable driver class


    Action:

    Consider the following:
    If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
    If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

    Note: If I revert azure key vault version to 2.1.2, then it works fine. 



    Monday, August 5, 2019 10:26 AM

All replies

  • Hey Sarma, 

    Are you referring to this Github Library : https://github.com/Microsoft/azure-spring-boot/tree/master/azure-spring-boot-starters/azure-keyvault-secrets-spring-boot-starter

    The wiki doesn't ever say to use 2.1.6, have you tried using 2.1.7? 

    https://github.com/microsoft/azure-spring-boot/wiki/Branch-and-release

    Tuesday, August 6, 2019 7:01 PM
    Moderator
  • Hi Frank Hu,

    I was referring to 

    https://github.com/Microsoft/azure-spring-boot/issues/621

    where its mentioned to use below starter dependencies but was not working either. 

      •   Spring boot starter (2.1.3):
    •   key vault spring boot starter (2.1.5)

    Only version its working is 2.1.2 given below: 

    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>azure-keyvault-secrets-spring-boot-starter</artifactId>
      <version>2.1.2</version>
    </dependency>


    As per your suggestion, I tried with 2.1.7 but still not working. below is the snippet of pom.xml

    <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
     <version>2.1.7.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
    </parent>

    <dependencies>
    <dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-keyvault-secrets-spring-boot-starter</artifactId>
            </dependency>

    </dependencies>

    <dependencyManagement>
    <dependencies>
    <dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-spring-boot-bom</artifactId>
    <version>${azure.version}</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
    </dependencies>
    </dependencyManagement>


    Wednesday, August 7, 2019 9:04 AM
  • Unfortunately if the library is not working there's not much we can do. The only other suggestion is to use the adal4j library and roll your own implementation. 

    I apologize for the inconvenience. 

    Please engage with the library owners via the git issue to further progress this issue. 

    Wednesday, August 7, 2019 4:31 PM
    Moderator
  • Hello,

    Just checking to see if the reply answered your question.


    Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks!

    Friday, August 30, 2019 10:37 PM
    Moderator