Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » No persistence provider
No persistence provider [message #805950] Fri, 24 February 2012 10:30 Go to next message
Kapusta Missing name is currently offline Kapusta Missing nameFriend
Messages: 48
Registered: March 2011
Member
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 11:14 Go to previous message
Sunil Varma is currently offline Sunil VarmaFriend
Messages: 5
Registered: February 2012
Junior Member
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: Fri Apr 26 15:39:59 GMT 2024

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

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

Back to the top