title: Exception [EclipseLink-4003] (Eclipse Persistence Services - 2.3.0.v20110604-r9504):
body: <p>I receive exception when my web project tries to connect database.</p>
  
  <p><code>Exception [EclipseLink-4003] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DatabaseException 
  Exception Description: Configuration error.  Class [com.mysql.jdbc.Driver] not found.at org.eclipse.persistence.exceptions.DatabaseException.configurationErrorClassNotFound(DatabaseException.java:82)</code></p>
  
  <p>My persistence.xml is like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence version="2.0" xmlns="http://java.sun.com/xml/ns/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"&gt;
  &lt;persistence-unit name="flashpoll"&gt;
  &lt;class&gt;entities.Question&lt;/class&gt;
  &lt;class&gt;entities.Poll&lt;/class&gt;
  &lt;class&gt;entities.User&lt;/class&gt;
  &lt;class&gt;entities.Answers&lt;/class&gt;
  &lt;class&gt;entities.Admin&lt;/class&gt;
  &lt;properties&gt;
          &lt;property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/flashpoll"/&gt;
          &lt;property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/&gt;
          &lt;property name="javax.persistence.jdbc.password" value="12345"/&gt;
          &lt;property name="javax.persistence.jdbc.user" value="root" /&gt;
          &lt;property name="eclipselink.ddl-generation" value="create-tables" /&gt;
          &lt;property name="eclipselink.persistence-context.flush-mode" value="COMMIT" /&gt;
      &lt;/properties&gt;
  &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>mysql-connector-5.0.8 is also included in the libraries of the project.
  Any idea why do I still receive this  Class [com.mysql.jdbc.Driver] not found error?
  Thanks for any help.</p>