Thanks Rémon, but unfortunately those two web pages are rather old and relate 
to versions of OpenJPA  before 2.0.0, OpenJPA 2.0.0 has much better support for 
OSGi.
Unfortunately there doesn't seem to be a JSR-303 Validation provider that has 
good support for OSGi (the only two I could find being hibernate and agimatec, 
neither of which provide bundles).
My solution, eventually, was simply to turn off validation in my 
persistence.xml and applicationContext.xml.

Finally, after weeks of struggle (mainly trying to get Hibernate working), I 
have JPA working in felix/karaf.

I'll blog it at some point, the configuration itself is quite simple, but 
finding our what it should be is a nightmare!

Jim

________________________________________
From: Rémon. Sinnema [[email protected]]
Sent: 05 May 2010 11:51
To: [email protected]
Subject: Re: How to get OpenJPA validation working in felix?

Check out http://lsd.luminis.nl/jpa-persistence-in-osgi-with-openjpa/ and 
http://lsd.luminis.nl/persistence-in-osgi-with-openjpa-part-2/



----- Original Message ----
From: Jim Talbut <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Wed, May 5, 2010 11:20:41 AM
Subject: How to get OpenJPA validation working in felix?

Hi,

I'm trying to move some JPA using code from Tomcat to Felix and I'm having 
trouble getting OpenJPA to work.
OpenJPA complains about validation, and it's not at all clear to me what 
bundles I should use to get validation working.
Please can someone who has OpenJPA working with validation in felix let me know 
what bundles they are using?

Thanks.

Jim





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to