title: org.flywaydb.core.api.FlywayException: Error while determining database product name
body: <p>below is my JNDI lookup for the Datasource</p>
  
  <pre><code>&lt;bean id="datasource" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
          &lt;property name="jndiName" value="java:comp/env/jdbc/intdb" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>and flyway bean config is </p>
  
  <pre><code>&lt;bean id="flyway" class="org.flywaydb.core.Flyway" init-method="migrate"&gt;
          &lt;property name="dataSource" ref="datasource" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>i am getting below exception, but if i replace JNDI lookup with all the properties in the bean it works fine,</p>
  
  <blockquote>
    <p>Caused by: org.flywaydb.core.api.FlywayException: Error while
    determining database product name
          at org.flywaydb.core.internal.dbsupport.DbSupportFactory.getDatabaseProductName(DbSupportFactory.java:139)
          at org.flywaydb.core.internal.dbsupport.DbSupportFactory.createDbSupport(DbSupportFactory.java:59)
          at org.flywaydb.core.Flyway.execute(Flyway.java:1147)
          at org.flywaydb.core.Flyway.migrate(Flyway.java:811)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1522)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
          ... 26 more
        Caused by: java.sql.SQLException: Unsupported feature
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
          at oracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBError.java:689)
          at oracle.jdbc.OracleDatabaseMetaData.getDatabaseMajorVersion(OracleDatabaseMetaData.java:4442)
          at org.flywaydb.core.internal.dbsupport.DbSupportFactory.getDatabaseProductName(DbSupportFactory.java:134)</p>
  </blockquote>