title: SPRING: Requested bean is currently in creation: Is there an unresolvable circular reference
body: <p>I'm trying to implement hikari but I have this error:</p>
  
  <pre><code>/META-INF/datasource.beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'dataSource': Requested bean is currently in creation: Is there an unresolvable circular reference?
  </code></pre>
  
  <p>My config:</p>
  
  <pre><code>&lt;bean id="hikariConfig" class="com.zaxxer.hikari.HikariConfig"&gt;
      &lt;property name="poolName" value="abc_connection_pool" /&gt;
      &lt;property name="dataSourceClassName" value="com.informix.jdbcx.IfxDataSource"/&gt;
      &lt;property name="maximumPoolSize" value="100" /&gt;     
      &lt;property name="connectionTimeout" value="500" /&gt;
      &lt;property name="validationTimeout" value="300" /&gt;
      &lt;property name="maxLifetime" value="30000" /&gt;
      &lt;property name="transactionIsolation" value="1" /&gt;
      &lt;property name="dataSourceProperties"&gt;
      &lt;props&gt;
          &lt;prop key="url"&gt;${jdbc.url}&lt;/prop&gt;
          &lt;prop key="user"&gt;${jdbc.username}&lt;/prop&gt;
          &lt;prop key="password"&gt;${jdbc.password}&lt;/prop&gt;
      &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="dataSource" class="com.zaxxer.hikari.HikariDataSource" destroy-method="close"&gt;
      &lt;constructor-arg ref="hikariConfig" /&gt;
  &lt;/bean&gt; 
  </code></pre>
  
  <p>Environment</p>
  
  <pre><code>HikariCP version: HikariCP-java6 2.3.13
  JDK version     : 1.6
  Database        : Informix
  Driver version  : Ibm.informix.jdbc 3.00.JC3 
  </code></pre>
  
  <p>I change the previous pool that was running by Hikari and I get that error</p>