Problème EBJ3 Hibernate "No Persisten ce provider for EntityManager"

Christophe Cailloix <[email protected]>
Newsgroups gmane.comp.java.netbeans.general.french
Message-ID <[email protected]>
Bonjour à tous,

J'ai un problème que j'ai un peu de mal à résoudre. Je suis en train de 
travailler avec netBeans 5.5 beta 2 sur une "Enterprise Application" 
dans laquelle j'ai deux "EJB Modules". Le premier utilise des EJB2 et 
j'essaie de faire de l'EJB3 (Hibernate) avec le second. J'ai 
correctement créer mon persistence unit (donc le persistence.xml dans 
META-INF) et tout fonctionne correctement lorsque je lance mes tests 
Junit (Creation des tables + insert). Seulement lorsque je deploie mon 
appli dans jboss (version 4.0.3 SP1) l'appel de

Persistence.createEntityManagerFactory("PPP_generalPU").createEntityManager();

me lance une

javax.persistence.PersistenceException: No Persistence provider for 
EntityManager named PPP_generalPU

Du coup j'ai sauvagement essayé de coller des persistance.xml un peu 
partout dans le projet mais rien y fait.

Si qqun ici a une idée ou un truc a me faire essayer, je suis prenneur.

Merci d'avance à ceux qui me répondront.

Christophe Cailloix
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.