|No Persistence provider from dependency [message #533511]
||Fri, 14 May 2010 07:14
| Marc Fargas
Registered: May 2010
I have two Plug-in projects, the first one defines a bunch of Entities of a database I need to deal of, and from this project (from it's tests) everything works nicely (ie: Query de DB).
Then I created project 2 which provides some UI to deal with some stuff and depends on the first project (to Query it's DB). I added the project as plugin dependencies of project 2.
But, when I called createEntityManagerFactory() I got that nice error:
"javax.persistence.PersistenceException: No Persistence provider for EntityManager named xxxxxxxxxxxx"
I've being googling around for a while (two days) but all the solutions I found did not apply. Among other things I tried to copy the persistence.xml file from project1 to project2/META-INF, project2/src/META-INF and the bin/ folder with no luck.
Do you have anyclues on what may I be doing wrong?
Thanks a lot.