title: Why does Hibernate ignore the JPA2 standardized properties in my persistence.xml?
body: <p>I have an extremely simple web application running in Tomcat using Spring 3.0.2, Hibernate 3.5.1, JPA 2, and Derby.  I am defining all of my database connectivity in <code>persistence.xml</code> and merely using Spring for dependency injection.  I am using embedded Derby as my database.</p>
  
  <p>Everything works correctly when I define the driver and url properties in <code>persistence.xml</code> in the classic Hibernate manner as thus:</p>
  
  <pre><code>&lt;property name="hibernate.connection.driver_class" value="org.apache.derby.jdbc.EmbeddedDriver"/&gt;
  &lt;property name="hibernate.connection.url" value="jdbc:derby:webdb;create=true"/&gt;
  </code></pre>
  
  <p>The problems occur when I switch my configuration to the JPA2 standardized properties as thus:</p>
  
  <pre><code>&lt;property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/&gt;
  &lt;property name="javax.persistence.jdbc.url" value="jdbc:derby:webdb;create=true"/&gt;
  </code></pre>
  
  <p>When using the JPA2 property keys, the application bails hard with the following exception:</p>
  
  <pre><code>java.lang.UnsupportedOperationException: The user must supply a JDBC connection
  </code></pre>
  
  <p>Does anyone know why this is failing?</p>
  
  <p><strong>NOTE:</strong> I have copied the javax... property strings straight from the Hibernate reference documentation, so a typo is extremely unlikely.</p>