This is a bit too broad. You don't mention the used versions or a specific test. Can you provide a self-contained test that does not include any dependencies other than DS, Pax CDI, Pax JPA and their prerequisites - i.e. no Karaf, Lombok, Osgiliath or anything else?
There is a working example: https://github.com/ops4j/org.ops4j.pax.cdi/blob/cdi-1.0.0.RC1/itest/src/it/itest-standalone/src/test/java/org/ops4j/pax/cdi/test/TransactionalTest.java Regards, Harald 2015-06-14 15:36 GMT+02:00 Charlie Mordant <[email protected]>: > Hi, > I tried to integrate DS-Data with OSGI, Pax-JPA, but unfortunately I hit a > NPE. > Did anyone succeed this integration? > > If someone is interested on the test, here are the links: > > * The CDI-Data karaf feature: > > https://github.com/OsgiliathEnterprise/net.osgiliath.parent/blob/master/net.osgiliath.framework/net.osgiliath.features.karaf-features/net.osgiliath.features.karaf-features-jpa/src/main/resources/net.osgiliath.features.karaf-features-jpa.xml > > * The entity tested module: > > https://github.com/OsgiliathEnterprise/net.osgiliath.parent/tree/master/net.osgiliath.framework/net.osgiliath.features.karaf-features/net.osgiliath.features.karaf-features.itests/net.osgiliath.features.karaf-features.itests.jpa.cdi.entities > > * The tested data module: > > https://github.com/OsgiliathEnterprise/net.osgiliath.parent/tree/master/net.osgiliath.framework/net.osgiliath.features.karaf-features/net.osgiliath.features.karaf-features.itests/net.osgiliath.features.karaf-features.itests.jpa.cdi.daos > > Best regards, > > Charlie > > > -- > Charlie Mordant > > Full OSGI/EE stack made with Karaf: > https://github.com/OsgiliathEnterprise/net.osgiliath.parent >
