3 Replies Latest reply on Aug 18, 2017 6:00 PM by James Perkins

    JPA provider

    Prashant Saraf Newbie

      We are migrating from Weblogic to JBoss, my application usages Eclipselink as persistence provider, even after adding eclipselink.jar in lib of war is not working. I still get

      WFLYJPA0057: PersistenceProvider 'org.eclipse.persistence.jpa.PersistenceProvider' not found

       

      What is solution?

        • 1. Re: JPA provider
          Gulam Samdani Expert

          Hi , you have to follow this tutorial

           

          I think, I sink!: EclipseLink on WildFly 8.2.0

           

          no need to add eclipse jar into war . you have to do following way

          • 2. Re: JPA provider
            Prashant Saraf Newbie

            Thanks for reply.. I did tried above but no luck

             

             

            <module xmlns="urn:jboss:module:1.3" name="org.eclipse.persistence">

                <resources>

                    <resource-root path="jipijapa-eclipselink-7.0.0.GA-redhat-2.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>

             

             

             

            Persistance.xml

            <?xml version="1.0" encoding="UTF-8"?>

            <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">

            <persistence-unit name="bi_ods_svc_recordCustomer" transaction-type="RESOURCE_LOCAL" >

            <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>

            <jta-data-source>JTA_DS</jta-data-source>

            <class>com.thehartford.bi.ods.utils.safeordering.entities.Message</class>

            <exclude-unlisted-classes>false</exclude-unlisted-classes>

            <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>

            <properties>

            <property name="eclipselink.target-server" value="WebLogic"/>

            <property name="eclipselink.weaving" value="static"/>

            <!--  <property name="eclipselink.logging.thread" value="false"/>-->

            <property name="eclipselink.persistence-context.flush-mode" value="commit" />

            </properties>

            </persistence-unit>

             

            </persistence>

            • 3. Re: JPA provider
              James Perkins Master

              Do you use anything specific to eclipselink? If you're just using plan JPA you should just be able to use the default instance.

               

              Also maybe have a look at JPA Reference Guide - Latest WildFly Documentation - Project Documentation Editor .

               

              --

              James R. Perkins