title: Failed to get driver instance for oracle
body: <p>I’m trying to connect to my oracle database, I’m using a spring boot configuration together with YAML file, I’ve configured jdbc in pom and jpa, but it still fails to connect.</p>
  
  <p>I’ve tried many different configuration for the url:</p>
  
  <pre><code>1)  jdbcUrl=jdbc:oracle:thin://test.test.test:1521
  
  2)  jdbcUrl=jdbc:oracle:thin@test.test.test:1521 
  
  3)  jdbcUrl=jdbc:oracle://test.test.test:1521 
  
  4)  jdbcUrl=jdbc:oracle@test.test.test:1521 
  </code></pre>
  
  <p>here my application.yml</p>
  
  <pre><code>spring:
    profiles: test
  datasource:
    onlineterminierung:
      url: jdbc:oracle: jdbc:oracle:thin://test.test.test:1521
      database: test
      username: test
      password: test
      driverClassName: oracle.jdbc.driver.OracleDriver
      defaultSchema:
      maxPoolSize: 20
      hibernate:
        hbm2ddl.method: update
        show_sql: false
        format_sql: true
        dialect: org.hibernate.dialect.Oracle10gDialect
  </code></pre>
  
  <p>and here the DataSource bean:</p>
  
  <pre><code>  /*
       * Configure HikariCP pooled DataSource.
       */
      @Bean
      public DataSource dataSource() {
          DataSourceProperties dataSourceProperties = dataSourceProperties();
          HikariDataSource dataSource = (HikariDataSource) DataSourceBuilder.create(dataSourceProperties.getClassLoader())
                  .driverClassName(dataSourceProperties.getDriverClassName()).url(dataSourceProperties.getUrl()).username(dataSourceProperties.getUsername())
                  .password(dataSourceProperties.getPassword()).type(HikariDataSource.class).build();
          dataSource.setMaximumPoolSize(maxPoolSize);
          return dataSource;
      }
  </code></pre>
  
  <p>here the pom:</p>
  
  <pre><code>&lt;dependency&gt;
        &lt;groupId&gt;com.oracle&lt;/groupId&gt;
        &lt;artifactId&gt;ojdbc14&lt;/artifactId&gt;
        &lt;version&gt;10.2.0.3.0&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>here the stack:</p>
  
  <pre><code>HHH000342: Could not obtain connection to query metadata : Failed to get driver instance for jdbcUrl=jdbc:oracle:thin://test.test.test:1521
      Unable to build Hibernate SessionFactory
      Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
      Caused by: java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=jdbc:oracle:thin://test.test.test:1521
      Caused by: java.sql.SQLException: No suitable driver
  </code></pre>
  
  <p>Some idea?</p>