title: OpenJPA Connection error
body: <p>I am following this tutorial on OpenJPA -> <a href="http://plunchete.wordpress.com/2007/05/06/using-openjpa/" rel="nofollow">http://plunchete.wordpress.com/2007/05/06/using-openjpa/</a></p>
  
  <p>I am getting this error :</p>
  
  <pre><code>160  INFO   [main] openjpa.Runtime - OpenJPA dynamically loaded the class enhancer. Any classes that were not enhanced at build time will be enhanced when they are loaded by the JVM.
  188  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.2.1
  Exception in thread "main" &lt;openjpa-2.2.1-r422266:1396819 fatal user error
  org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or DataSource class
  name must be specified in the ConnectionDriverName property. Available properties in
  configuration are "org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl@442ce698".
  at
  org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:72)
  </code></pre>
  
  <p>Persistence.xml is like this :</p>
  
  <pre><code>&lt;persistence xmlns="http://java.sun.com/xml/ns/persistence"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"&gt;
  &lt;persistence-unit name="example" transaction-type="RESOURCE_LOCAL"&gt;
  &lt;provider&gt;
  org.apache.openjpa.persistence.PersistenceProviderImpl
  &lt;/provider&gt;
  &lt;class&gt;Person&lt;/class&gt;
  &lt;properties&gt;
  &lt;property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema" /&gt;
  &lt;property name="openjpa.ConnectionDriverName" value="com.mysql.jdbc.Driver" /&gt;
  &lt;property name="openjpa.ConnectionURL" value="jdbc:mysql://localhost:3306/cs5200" /
  &lt;property name="openjpa.ConnectionUserName" value="root" /&gt;
  &lt;property name="openjpa.ConnectionPassword" value="" /&gt;
  &lt;/properties&gt;
  &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>