|Re: No Persistence provider from dependency [message #534169 is a reply to message #533511]
||Tue, 18 May 2010 09:32
| Marc Fargas
Registered: May 2010
Ok, I fixed this after reading this thread:
I copy the relevant part here (that things are to be done in the RUN CONFIGURATIONS screen):
Try the following.
- Set a default start level of 5.
- We need the javax.persistence bundle to start at first, so set a
startlevel of 3.
- Next org.eclipse.persistence.jpa should be started -> start level 4
- Leave all the rest at startlevel 5.
Have a look for the following output on the osgi console:
2009-10-09 10:25:11,328 INFO [STDOUT] Persistence bundle starting...
2009-10-09 10:25:11,329 INFO [STDOUT] Persistence bundle started.
2009-10-09 10:25:25,565 INFO [STDOUT] ProviderTracker: New service detected...
2009-10-09 10:25:25,565 INFO [STDOUT] ProviderTracker: Added service org.eclipse.persistence.jpa.osgi.PersistenceProviderOSGi
If you don't see the output, make sure you set the -console -consolelog
arguments in the launch configurations. If you still don't see it,
you've at least identified the problem, the PersistenceProvider service
is not registered.
Powered by FUDForum
. Page generated in 0.01549 seconds