title: Hibernate persistance.xml : Disabling contextual LOB creation as connection was null
body: <p>My <code>persistence.xml</code>:</p>
  
  <pre><code>&lt;persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
    version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"&gt;
    &lt;persistence-unit name="test" transaction-type="RESOURCE_LOCAL"&gt;
      &lt;provider&gt;org.hibernate.jpa.HibernatePersistenceProvider&lt;/provider&gt;
      &lt;class&gt;com.ibm.apiscanner.DTO.BaselineDTO&lt;/class&gt;
      &lt;properties&gt;
        &lt;property name="hibernate.connection.driver_class" value="com.ibm.db2.jcc.DB2Driver" /&gt;
        &lt;property name="hibernate.connection.url"    value="jdbc:db2://localhost:{PORT}/{DB}" /&gt;
        &lt;property name="hibernate.connection.username" value="{user}" /&gt;
        &lt;property name="hibernate.connection.password" value="{password}" /&gt;
        &lt;property name="hibernate.dialect" value="org.hibernate.dialect.DB2Dialect"/&gt;
        &lt;property name="show_sql" value="true"/&gt;
        &lt;property name="hibernate.temp.use_jdbc_metadata_defaults" value="false"/&gt;
      &lt;/properties&gt;
    &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>I'm presented with the following: </p>
  
  <pre><code>Jan 22, 2015 9:16:48 PM org.hibernate.dialect.Dialect &lt;init&gt;
  INFO: HHH000400: Using dialect: org.hibernate.dialect.DB2Dialect
  Jan 22, 2015 9:16:48 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
  INFO: HHH000422: Disabling contextual LOB creation as connection was null
  </code></pre>
  
  <p>The same url,user and password combination works when connecting via basic JDBC.</p>
  
  <p>Anyone have suggestions?</p>