title: Persistence.xml not correctly configured
body: <p>I'm not able to get this persistence file correct... I do not find any more information in the book that I use as a guide. I'm using a MySQL database.</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="a11_DA_g5_PU" transaction-type="JTA"&gt;
          &lt;jta-data-source&gt;a11_DA_g5&lt;/jta-data-source&gt;
          &lt;provider&gt;org.eclipse.persistence.jpa.PersistenceProvider&lt;/provider&gt;
          &lt;class&gt;entities.Book&lt;/class&gt;
          &lt;class&gt;entities.Author&lt;/class&gt;
          &lt;class&gt;entities.Customer&lt;/class&gt;
          &lt;class&gt;entities.Membership&lt;/class&gt;
          &lt;properties&gt;
            &lt;property name="eclipselink.target-database" value="DERBY"/&gt;
            &lt;property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/&gt;
            &lt;property name="javax.persistence.jdbc.url" value="jdbc:mysql://studev.groept.be:3306/a11_DA_g5"/&gt;
            &lt;property name="javax.persistence.jdbc.user" value="a11_DA_g5"/&gt;
            &lt;property name="javax.persistence.jdbc.password" value="passwordhere"/&gt;
            &lt;property name="eclipselink.ddl-generation" value="create-tables"/&gt;
          &lt;/properties&gt;
        &lt;/persistence-unit&gt;
      &lt;/persistence&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>SEVERE: DPL8015: Invalid Deployment Descriptors in Deployment descriptor file META-INF/persistence.xml in archive [EJBModule_jar].
  Line 6 Column 15 -- cvc-complex-type.2.4.a: Invalid content was found starting with element 'provider'. One of '{"http://java.sun.com/xml/ns/persistence":shared-cache-mode, "http://java.sun.com/xml/ns/persistence":validation-mode, "http://java.sun.com/xml/ns/persistence":properties}' is expected.</p>
  
  <p>SEVERE: DPL8005: Deployment Descriptor parsing failure : cvc-complex-type.2.4.a: Invalid content was found starting with element 'provider'. One of '{"http://java.sun.com/xml/ns/persistence":shared-cache-mode, "http://java.sun.com/xml/ns/persistence":validation-mode, "http://java.sun.com/xml/ns/persistence":properties}' is expected.</p>
  
  <p>SEVERE: Exception while deploying the app [VaadinTestApp]</p>
  
  <p>SEVERE: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'provider'. One of '{"http://java.sun.com/xml/ns/persistence":shared-cache-mode, "http://java.sun.com/xml/ns/persistence":validation-mode, "http://java.sun.com/xml/ns/persistence":properties}' is expected.
  java.io.IOException: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'provider'. One of '{"http://java.sun.com/xml/ns/persistence":shared-cache-mode, "http://java.sun.com/xml/ns/persistence":validation-mode, "http://java.sun.com/xml/ns/persistence":properties}' is expected.</p>