Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » No persistence provider
No persistence provider [message #805950] Fri, 24 February 2012 05:30 Go to next message
Eclipse UserFriend
hi,

We use an eclipse link in order to manage our data base in using PostreSQL on apache server and derby for tests.
All test have passed but when we deploy in apache TomCat 6, we get an execption : "No persistence provider for EntityManager named sadocjpa"
We have :

src/main/wepapp/META-INF/persistence xml :
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.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_1_0.xsd ">
        <persistence-unit name="sadocjpa">
                <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
                <non-jta-data-source>java:/comp/env/ds/sadocwebappDS</non-jta-data-source>
                <class>fr.univartois.ili.sadoc.entities.Owner</class>
                <class>fr.univartois.ili.sadoc.entities.Acquisition</class>
                <class>fr.univartois.ili.sadoc.entities.Competence</class>
                <class>fr.univartois.ili.sadoc.entities.Degree</class>
                <class>fr.univartois.ili.sadoc.entities.Document</class>
                <class>fr.univartois.ili.sadoc.entities.Resume</class>

                <exclude-unlisted-classes>false</exclude-unlisted-classes>
                <properties>
                        <property name="eclipselink.ddl-generation" value="create-tables" />
                        <property name="eclipselink.ddl-generation.output-mode"
                                value="database" />
                        <property name="eclipselink.weaving" value="static" />
                        <property name="eclipselink.logging.level" value="WARNING" />
                </properties>
        </persistence-unit>
</persistence>

All dependancies were checked and we don't understand why we get this exception...
What did we forget ?

In advance thanks !

Max
Re: No persistence provider [message #806725 is a reply to message #805950] Sat, 25 February 2012 06:14 Go to previous message
Eclipse UserFriend
The message indicates that container is unable to find the Persistance provider specified. Is the eclipselink provider in the appropriate path for the container to load it?
Previous Topic:Bidirectional relationship with orphan removal: NULL-Update to a NOT NULL Column
Next Topic:Auditar entidad
Goto Forum:
  


Current Time: Mon Jul 14 07:29:14 EDT 2025

Powered by FUDForum. Page generated in 0.27858 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top