title: How to configure wildfly to use EclipseLink?
body: <p>i have installed wildfly 8.1 and because i have already a project configured to use EclipseLink, i have tried to configure wildfly to use it.</p>
  
  <p>However, it always gives the same error : </p>
  
  <pre><code>at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
   at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
   at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
   at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
  Caused by: javax.persistence.PersistenceException: JBAS011466: PersistenceProvider '
  org.eclipse.persistence.jpa.PersistenceProvider
  ' not found
   at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.lookupProvider(PersistenceUnitServiceHandler.java:990)
   at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.addPuService(PersistenceUnitServiceHandler.java:258)
   at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.handleWarDeployment(PersistenceUnitServiceHandler.java:191)
   at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:126)
   at org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:52)
   at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
   ... 5 more
  </code></pre>
  
  <p>I have followed the instructions of the <a href="https://docs.jboss.org/author/display/WFLY8/JPA+Reference+Guide#JPAReferenceGuide-UsingEclipseLink" rel="nofollow noreferrer">official documentation</a>, but nothing changed. I have added the eclipseLink's jar to "modules\system\layers\base\org\eclipse\persistence\main"
  and the module.xml :</p>
  
  <pre><code>&lt;module xmlns="urn:jboss:module:1.3" name="org.eclipse.persistence"&gt;
      &lt;resources&gt;
          &lt;resource-root path="jipijapa-eclipselink-1.0.1.Final.jar"/&gt;
          &lt;resource-root path="eclipselink.jar"/&gt;
      &lt;/resources&gt;
  
      &lt;dependencies&gt;
          &lt;module name="asm.asm"/&gt;
          &lt;module name="javax.api"/&gt;
          &lt;module name="javax.annotation.api"/&gt;
          &lt;module name="javax.enterprise.api"/&gt;
          &lt;module name="javax.persistence.api"/&gt;
          &lt;module name="javax.transaction.api"/&gt;
          &lt;module name="javax.validation.api"/&gt;
          &lt;module name="javax.xml.bind.api"/&gt;
          &lt;module name="org.antlr"/&gt;
          &lt;module name="org.apache.commons.collections"/&gt;
          &lt;module name="org.dom4j"/&gt;
          &lt;module name="org.javassist"/&gt;
          &lt;module name="org.jboss.as.jpa.spi"/&gt;
          &lt;module name="org.jboss.logging"/&gt;
          &lt;module name="org.jboss.vfs"/&gt;
      &lt;/dependencies&gt;
  &lt;/module&gt;
  </code></pre>
  
  <p>Do you know what is the problem ?</p>
  
  <p>Tks</p>
  
  <p><strong>Edit</strong> :
  My persistence.xml</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="AppPu"&gt;
          &lt;provider&gt;org.eclipse.persistence.jpa.PersistenceProvider&lt;/provider&gt;
          &lt;jta-data-source&gt;java:/H2Ds&lt;/jta-data-source&gt;
          &lt;exclude-unlisted-classes&gt;false&lt;/exclude-unlisted-classes&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>