Back Forum Reply New

Eclipse RCP development problem with spring and openJPA: IllegalStateException

Hi,

I'm just trying to develop an eclipse rcp plugin, the middle tear of which uses spring - openJPA managed persistence. I use spring version 2.5.4 and openJPA version 1.0.2

When I test my middletear with some standalone Test-Application from the command line, all looks fine, so that I assume my spring-openjpa-cnfiguration to be correct.

When I try to obtain the spring ApplicationContext within the start()- method of my Eclipse RCP BundleActivator I get an IllegalStateException during context creation with the message

quot;JPA PersistenceProvider returned null EntityManagerFactory - check your JPA provider setup!quot;

In order to use the spring functionality within an eclipse plugin project I have - for the first trial packaged all required jars into a single eclipse plugin project
which my eclipse plugin project depends on. All dependencies and prior classloader problems are resolved up to now, but now I got stuck with this IllegalStateException.

I used the same spring configuration as in the above mentioned standalone test and have no idea what went wrong.

Does anybody have experience with developing eclipse rcp applications which use a spring based middletear for orm?

Thanks a lot
dolena

Hi

finally I found this very helpful link which tracked down my problems with openJPA in an OSGi container.

roller/lumini...e_in_osgi_with

Hopefully this stuff will be solved with the new SpringSource OSGi bundle repository

repository/app/

Buy
dolena
¥
Back Forum Reply New