Hi Christian, yes I have EclipseLink installed : [ 89] [Active ] [ ] [ 80] EclipseLink ASM (3.3.1.v201206041142) [ 90] [Active ] [ ] [ 80] EclipseLink ANTLR (3.2.0.v201206041011) [ 91] [Active ] [ ] [ 80] EclipseLink Core (2.4.1.v20121003-ad44345) [ 92] [Active ] [ ] [ 80] EclipseLink JPA (2.4.1.v20121003-ad44345) [ 93] [Resolved ] [ ] [ 80] EclipseLink Oracle Extensions (2.4.1.v20121003-ad44345)
And no the bundle does not export any service: karaf@bt>osgi-inspect 120 120 : <Bnd-LastModified> => <1359795452000> 120 : <Bundle-Description> => <BT :: Service :: IO :: FIX> 120 : <Bundle-ManifestVersion> => <2> 120 : <Bundle-Name> => <BT :: Service :: IO :: FIX> 120 : <Bundle-SymbolicName> => <bt.service.io.fix> 120 : <Bundle-Version> => <1.0.0> 120 : <Created-By> => <1.6.0_37 (Apple Inc.)> 120 : <Export-Package> => <bt.service.io.fix.factory;uses:="org.slf4j.spi,org.slf4j,quickfix,bt.core,bt.service.io.fix.jpa.entity,javax.persistence",bt.service.io.fix;uses:="org.slf4j,quickfix,org.apache.commons.lang3,bt.core,bt.core.util,org.osgi.framework,bt.core.session,bt.core.codec",bt.service.io.fix.jpa.entity;uses:="bt.core,javax.persistence"> 120 : <Import-Package> => <bt.core,bt.core.codec,bt.core.session,bt.core.util,javax.persistence;version="[1.1,2)",org.apache.commons.lang3;version="[3.1,4)",org.osgi.framework;version="[1.6,2)",org.slf4j;version="[1.7,2)",org.slf4j.spi;version="[1.7,2)",quickfix> 120 : <JPA-PersistenceUnits> => <BT-IO-FIX> 120 : <Manifest-Version> => <1.0> 120 : <Meta-Persistence> => <META-INF/persistence.xml> 120 : <Tool> => <Bnd-1.50.0> According to the logs, the persistence descriptor ans persistence unit are found by Aries: 0:34:40,386|DEBUG|org.apache.aries.jpa.container ==> Located Persistence descriptors: [META-INF/persistence.xml] in bundle bt.service.io.fix_1.0.0 10:34:40,392|DEBUG|org.apache.aries.jpa.container ==> Located Persistence units: [Persistence unit BT-IO-FIX in bundle bt.service.io.fix_1.0.0] 10:34:40,393|DEBUG|bt.service.io.fix ==> BundleEvent INSTALLED - bt.service.io.fix 10:34:40,393|INFO |org.apache.felix.fileinstall ==> Installed /Users/luca/Documents/work/lb/dev/wks/eclipse-git/bt/bt.rt/karaf/data/karaf-deploy/bt.service.io.fix.jar 10:34:40,401|DEBUG|org.apache.felix.framework ==> FrameworkEvent PACKAGES REFRESHED - org.apache.felix.framework 10:34:40,404|DEBUG|org.apache.aries.blueprint.container.ServiceRecipe ==> Retrieving service for bundle org.apache.aries.jpa.container [117] and service registration org.apache.felix.framework.ServiceRegistrationImpl@51e3752b 10:34:40,404|DEBUG|org.apache.aries.blueprint.container.ServiceRecipe ==> Method entry: getService, args org.eclipse.persistence.jpa.PersistenceProvider@53c52191 10:34:40,407|DEBUG|org.apache.aries.blueprint.container.BlueprintExtender ==> Scanning bundle bt.service.io.fix for blueprint application 10:34:40,407|DEBUG|org.apache.aries.blueprint.container.BlueprintExtender ==> Found blueprint application in bundle bt.service.io.fix with paths: [bundle://121.0:0/OSGI-INF/blueprint/blueprint.xml] 10:34:40,408|DEBUG|bt.service.io.fix ==> BundleEvent RESOLVED - bt.service.io.fix 10:34:40,408|DEBUG|org.apache.aries.blueprint.container.BlueprintExtender ==> Scheduling creation of blueprint bundle bt.service.io.fix asynchronously 10:34:40,408|DEBUG|org.apache.aries.blueprint.container.BlueprintContainerImpl ==> Running blueprint container for bundle bt.service.io.fix in state Unknown 10:34:40,408|DEBUG|bt.service.io.fix ==> BundleEvent STARTED - bt.service.io.fix 10:34:40,409|DEBUG|org.apache.aries.blueprint.container.BlueprintEventDispatcher ==> Sending blueprint container event BlueprintEvent[type=CREATING] for bundle bt.service.io.fix 10:34:40,409|INFO |org.apache.felix.fileinstall ==> Started bundle: file:/Users/luca/Documents/work/lb/dev/wks/eclipse-git/bt/bt.rt/karaf/data/karaf-deploy/bt.service.io.fix.jar 10:34:40,409|DEBUG|org.apache.karaf.shell.osgi.BlueprintListener ==> Blueprint app state changed to Creating for bundle 121 10:34:40,412|DEBUG|org.apache.aries.jpa.blueprint.aries ==> Creating blueprint injection metadata to inject the unit BT-IO-FIX into bean property entityManagerFactory 10:34:40,414|DEBUG|.apache.aries.blueprint.container.AbstractServiceReferenceRecipe ==> Found initial references null for OSGi service (&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=BT-IO-FIX))(objectClass=javax.persistence.EntityManagerFactory)) 10:34:40,414|DEBUG|org.apache.aries.blueprint.container.BlueprintContainerImpl ==> Tracking service references: [.component-1] 10:34:40,414|INFO |org.apache.aries.blueprint.container.BlueprintContainerImpl ==> Bundle bt.service.io.fix is waiting for dependencies [(&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=BT-IO-FIX))(objectClass=javax.persistence.EntityManagerFactory))] 10:34:40,414|DEBUG|org.apache.aries.blueprint.container.BlueprintEventDispatcher ==> Sending blueprint container event BlueprintEvent[type=GRACE_PERIOD, dependencies=[(&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=BT-IO-FIX))(objectClass=javax.persistence.EntityManagerFactory))]] for bundle bt.service.io.fix 10:34:40,415|DEBUG|org.apache.karaf.shell.osgi.BlueprintListener ==> Blueprint app state changed to GracePeriod for bundle 121 -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-JPA-and-EclipseLink-tp4027571p4027580.html Sent from the Karaf - User mailing list archive at Nabble.com.
