Thanks for your reply Christian. However, the JAR you refer to isn't an OSGi bundle either. In fact I think its the publicly released jar from JBoss which I had problems with. I tried to use the OSGi wrapped version they use in Glassfish:
http://download.java.net/maven/2/org/glassfish/bean-validator/3.0-JBoss-4.0.2/bean-validator-3.0-JBoss-4.0.2.jar But it turns out it requires the packages "org.glassfish.api.naming.*" that I assume only exist in Glassfish. Related to the above, one also needs an OSGi bundle for the API: javax.validation. Glassfish wraps it in the same jar I mentioned above. From where does Camel take it? I don't quite understand how Camel can use the non-OSGi:fied version of hibernate-validator. Have you tried this deployed in an OSGi container? /Bengt 2010/9/11 Christian Müller <christian.muel...@gmail.com> > Hello Bengt, > > we use the following on [1]. I think we could also update to 4.1.0. I > opened > a JIRA for it [2]. > > Hope this helps, > Christian > > [1] > > http://repository.jboss.org/nexus/content/groups/public/org/hibernate/hibernate-validator/4.0.2.GA/hibernate-validator-4.0.2.GA.jar > [2] https://issues.apache.org/activemq/browse/CAMEL-3115 > > > On Sat, Sep 11, 2010 at 1:07 AM, Bengt Rodehav <be...@rodehav.com> wrote: > > > I''m experimenting with the Java Bean Validation API (JSR 303). I'm not > > currently doing it with Camel but thought I might ask for help here > anyway. > > > > I'm deploying in an OSGi context and need OSGi bundles for both the API > > (java.validation) and Hibernate's reference implementation (preferably > the > > latest version which I believe is 4.1). I haven't been able to find one. > > The > > only one I've found is bundled for Glassfish but has dependencies on > > Glassfish specific classes and therefore doesn't work outside Glassfish. > > > > Since Camel 2.4 contains the camel-bean-validator component I'm wondering > > if > > anyone can tell me how this problem was solved in Camel. > > > > /Bengt > > >