java - How to configure wildfly to use EclipseLink? -


i have installed wildfly 8.1 , because have project configured use eclipselink, have tried configure wildfly use it.

however, same error :

at org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:166) [wildfly-server-8.1.0.final.jar:8.1.0.final]  @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1948) [jboss-msc-1.2.2.final.jar:1.2.2.final]  @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1881) [jboss-msc-1.2.2.final.jar:1.2.2.final]  @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) [rt.jar:1.7.0_25]  @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) [rt.jar:1.7.0_25]  @ 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  @ org.jboss.as.jpa.processor.persistenceunitservicehandler.lookupprovider(persistenceunitservicehandler.java:990)  @ org.jboss.as.jpa.processor.persistenceunitservicehandler.addpuservice(persistenceunitservicehandler.java:258)  @ org.jboss.as.jpa.processor.persistenceunitservicehandler.handlewardeployment(persistenceunitservicehandler.java:191)  @ org.jboss.as.jpa.processor.persistenceunitservicehandler.deploy(persistenceunitservicehandler.java:126)  @ org.jboss.as.jpa.processor.persistencebegininstallprocessor.deploy(persistencebegininstallprocessor.java:52)  @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:159) [wildfly-server-8.1.0.final.jar:8.1.0.final]  ... 5 more 

i have though followed instructions of official documentation, nothing changed ! have added eclipselink's jar "modules\system\layers\base\org\eclipse\persistence\main" , module.xml :

<module xmlns="urn:jboss:module:1.3" name="org.eclipse.persistence">     <resources>         <resource-root path="jipijapa-eclipselink-1.0.1.final.jar"/>         <resource-root path="eclipselink.jar"/>     </resources>      <dependencies>         <module name="asm.asm"/>         <module name="javax.api"/>         <module name="javax.annotation.api"/>         <module name="javax.enterprise.api"/>         <module name="javax.persistence.api"/>         <module name="javax.transaction.api"/>         <module name="javax.validation.api"/>         <module name="javax.xml.bind.api"/>         <module name="org.antlr"/>         <module name="org.apache.commons.collections"/>         <module name="org.dom4j"/>         <module name="org.javassist"/>         <module name="org.jboss.as.jpa.spi"/>         <module name="org.jboss.logging"/>         <module name="org.jboss.vfs"/>     </dependencies> </module> 

do know problem ?

tks

edit : persistence.xml

<?xml version="1.0" encoding="utf-8"?> <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">     <persistence-unit name="apppu">         <provider>org.eclipse.persistence.jpa.persistenceprovider</provider>         <jta-data-source>java:/h2ds</jta-data-source>         <exclude-unlisted-classes>false</exclude-unlisted-classes>     </persistence-unit> </persistence> 

new lines in provider section of persistence.xml won't work (how help?). wildfly hasn't got provided eclipselink implementation in libs. fix follow steps:

  1. download eclipselink.jar (or copy maven repo)
  2. copy destination : ...wildfly\modules\system\layers\base\org\eclipse\persistence\main
  3. edit module.xml (same path). add section <resource-root path="eclipselink.jar"><filter><exclude path="javax/**" /></filter></resource-root>

after server restart should work.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -