You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Jim Talbut <Ji...@groupgti.com> on 2010/05/05 11:20:41 UTC

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

RE: How to get OpenJPA validation working in felix?

Posted by Jim Talbut <Ji...@groupgti.com>.
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 [rssinnema@yahoo.com]
Sent: 05 May 2010 11:51
To: users@felix.apache.org
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 <Ji...@groupgti.com>
To: "users@felix.apache.org" <us...@felix.apache.org>
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: How to get OpenJPA validation working in felix?

Posted by "Rémon. Sinnema" <rs...@yahoo.com>.
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 <Ji...@groupgti.com>
To: "users@felix.apache.org" <us...@felix.apache.org>
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org