title: Unable to execute JPA schema: service jboss.persistenceunit
body: <p>I have an Entreprise Application Project EAR : ( WAR + JAR EJB )
  when i deploy on Wildfly The EJB Project separately , i don't have any persistance problem but when i deploy the Ear I get the following error:</p>
  
  <blockquote>
    <p>21:13:24,101 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 52) MSC000001: Failed to start service jboss.persistenceunit."BankEar.ear/EJBBANK.jar#persist": org.jboss.msc.service.StartException in service jboss.persistenceunit."BankEar.ear/EJBBANK.jar#persist": javax.persistence.PersistenceException: Unable to execute JPA schema generation create command [create table Compte (code bigint not null, date datetime, solde double precision not null, primary key (code))]</p>
    
    <p>21:13:24,654 WARN  [org.jboss.as.jpa] (Controller Boot Thread) JBAS011411: Unexpected problem gathering statistics: java.lang.IllegalStateException: JBAS011477: Persistence unit 'BankEar.ear/EJBBANK.jar#persist' is not available</p>
    
    <p>JBAS014777:   Services which failed to start:      service jboss.persistenceunit."BankEar.ear/EJBBANK.jar#persist"</p>
  </blockquote>
  
  <p>this is my Persistan.xml File :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence version="2.1"
      xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"&gt;
      &lt;persistence-unit name="persist" transaction-type="JTA"&gt;
          &lt;jta-data-source&gt;java:jboss/datasources/jeeDataSource&lt;/jta-data-source&gt;
          &lt;class&gt;com.entity.Compte&lt;/class&gt;
          &lt;properties&gt;
          &lt;property name="javax.persistence.schema-generation.database.action"
             value="drop-and-create"/&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>