Re: Unresolved dependency using blueprint transaction
Hi, it's I said in previous e-mail: examples are not yet rebased, so they use 4.2.0-SNAPSHOT instead of 4.2.0 or 4.2.1-SNAPSHOT. I'm rebasing now, changing the version and dep ranges. It would be OK later today. Regards JB On 13/06/2018 12:23, ceugster wrote: > Hi first gratulation to the new website and the examples. I like it! I tried > to install the new examples for jpa (karaf/examples/karaf-jpa-examples. I > was able to clean install it and add the repo to karaf-4.2.0. Then I > succeeded to install the datasource feature. Trying to install the provider > feature did not work. First the feature hibernate had a wrong version in the > added feature (4.3.6.Final, instead of 5.2.9.Final). I corrected this and > did a new repo add. Then the same install failed due to wrong version of > existing Aries-proxy feature. I added the right one via deploy. After that > the next exception says (see below, and now I don't know further: > > karaf@root()> feature:install karaf-jpa-example-provider > org.osgi.service.resolver.ResolutionException: Unable to resolve root: > missing requirement [root] osgi.identity; > osgi.identity=karaf-jpa-example-provider; type=karaf.feature; > version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]"; > filter:="(&(osgi.identity=karaf-jpa-example-provider)(type=karaf.feature)(version>=4.2.0.SNAPSHOT)(version<=4.2.0.SNAPSHOT))" > [caused by: Unable to resolve karaf-jpa-example-provider/4.2.0.SNAPSHOT: > missing requirement [karaf-jpa-example-provider/4.2.0.SNAPSHOT] > osgi.identity; > osgi.identity=org.apache.karaf.examples.karaf-jpa-example-provider; > type=osgi.bundle; version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]"; > resolution:=mandatory [caused by: Unable to resolve > org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT: missing > requirement > [org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT] > osgi.service; objectClass=javax.persistence.spi.PersistenceProvider; > javax.persistence.provider=org.hibernate.jpa.HibernatePersistenceProvider; > effective:=active]] > at > org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42) > at > org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:391) > at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:377) > at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:331) > at > org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:248) > at > org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:388) > at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025) > at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) > at java.base/java.lang.Thread.run(Thread.java:844) > Error executing command: Unable to resolve root: missing requirement [root] > osgi.identity; osgi.identity=karaf-jpa-example-provider; type=karaf.feature; > version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]"; > filter:="(&(osgi.identity=karaf-jpa-example-provider)(type=karaf.feature)(version>=4.2.0.SNAPSHOT)(version<=4.2.0.SNAPSHOT))" > [caused by: Unable to resolve karaf-jpa-example-provider/4.2.0.SNAPSHOT: > missing requirement [karaf-jpa-example-provider/4.2.0.SNAPSHOT] > osgi.identity; > osgi.identity=org.apache.karaf.examples.karaf-jpa-example-provider; > type=osgi.bundle; version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]"; > resolution:=mandatory [caused by: Unable to resolve > org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT: missing > requirement > [org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT] > osgi.service; objectClass=javax.persistence.spi.PersistenceProvider; > javax.persistence.provider=org.hibernate.jpa.HibernatePersistenceProvider; > effective:=active]] > karaf@root()> > > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: Unresolved dependency using blueprint transaction
Hi first gratulation to the new website and the examples. I like it! I tried to install the new examples for jpa (karaf/examples/karaf-jpa-examples. I was able to clean install it and add the repo to karaf-4.2.0. Then I succeeded to install the datasource feature. Trying to install the provider feature did not work. First the feature hibernate had a wrong version in the added feature (4.3.6.Final, instead of 5.2.9.Final). I corrected this and did a new repo add. Then the same install failed due to wrong version of existing Aries-proxy feature. I added the right one via deploy. After that the next exception says (see below, and now I don't know further: karaf@root()> feature:install karaf-jpa-example-provider org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=karaf-jpa-example-provider; type=karaf.feature; version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]"; filter:="(&(osgi.identity=karaf-jpa-example-provider)(type=karaf.feature)(version>=4.2.0.SNAPSHOT)(version<=4.2.0.SNAPSHOT))" [caused by: Unable to resolve karaf-jpa-example-provider/4.2.0.SNAPSHOT: missing requirement [karaf-jpa-example-provider/4.2.0.SNAPSHOT] osgi.identity; osgi.identity=org.apache.karaf.examples.karaf-jpa-example-provider; type=osgi.bundle; version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT: missing requirement [org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT] osgi.service; objectClass=javax.persistence.spi.PersistenceProvider; javax.persistence.provider=org.hibernate.jpa.HibernatePersistenceProvider; effective:=active]] at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42) at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:391) at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:377) at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:331) at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:248) at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:388) at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025) at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.base/java.lang.Thread.run(Thread.java:844) Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=karaf-jpa-example-provider; type=karaf.feature; version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]"; filter:="(&(osgi.identity=karaf-jpa-example-provider)(type=karaf.feature)(version>=4.2.0.SNAPSHOT)(version<=4.2.0.SNAPSHOT))" [caused by: Unable to resolve karaf-jpa-example-provider/4.2.0.SNAPSHOT: missing requirement [karaf-jpa-example-provider/4.2.0.SNAPSHOT] osgi.identity; osgi.identity=org.apache.karaf.examples.karaf-jpa-example-provider; type=osgi.bundle; version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT: missing requirement [org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT] osgi.service; objectClass=javax.persistence.spi.PersistenceProvider; javax.persistence.provider=org.hibernate.jpa.HibernatePersistenceProvider; effective:=active]] karaf@root()> -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
(sorry for disturbing you yet) Ok, I did karaf@root()> service:list DataSource karaf@root()> jdbc:ds-create -dn derby -url "jdbc:derby:fancyfoods;create=true" fancyfoods karaf@root()> service:list DataSource [javax.sql.DataSource] -- dataSourceName = fancyfoods osgi.jdbc.driver.name = derby osgi.jndi.service.name = fancyfoods service.bundleid = 218 service.factoryPid = org.ops4j.datasource service.id = 238 service.pid = org.ops4j.datasource.021033f9-d68f-4b5c-b778-90bbb1b948e9 service.scope = singleton url = jdbc:derby:fancyfoods;create=true Provided by : OPS4J Pax JDBC Config (218) [javax.sql.DataSource] -- dataSourceName = fancyfoods osgi.jdbc.driver.name = derby osgi.jndi.service.name = fancyfoods service.bundleid = 218 service.factoryPid = org.ops4j.datasource service.id = 239 service.pid = org.ops4j.datasource.021033f9-d68f-4b5c-b778-90bbb1b948e9 service.scope = singleton url = jdbc:derby:fancyfoods;create=true Provided by : OPS4J Pax JDBC Config (218) and I see the configuration in the web console. But referring to my tutorial there must exist two data sources: EmbeddedDataSource and EmbeddedXADataSource for distributed transaction (JTA) How I achieve the second one? Then my Fancyfood persistence bundle does not start, because karaf@root()> diag 288 Fancyfoods Persistence (288) Status: Failure Declarative Services Blueprint 11.06.18, 18:23 Exception: Unable to validate xml org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to validate xml at org.apache.aries.blueprint.parser.Parser.validate(Parser.java:349) at org.apache.aries.blueprint.parser.Parser.validate(Parser.java:336) at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:345) at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278) at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299) at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268) at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264) at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) at java.base/java.lang.Thread.run(Thread.java:844) Caused by: org.xml.sax.SAXParseException; cvc-complex-type.2.4.c: xDCbereinstimmungsplatzhalter ist streng, aber es kann keine Deklaration fxFCr Element 'jpa:context' gefunden werden. at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204) at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:135) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:395) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:326) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:283) at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:510) at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3587) at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2142) at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValid
Re: Unresolved dependency using blueprint transaction
Up to Karaf 3, the Karaf JDBC feature created a datasource service using blueprint (as you do). It means that: 1. The JDBC feature had a dependency to blueprint 2. Changing the datasource configuration itself triggered unregister/register of the datasource service (as the blueprint container is "reloaded"). That's why we created pax-jdbc and Karaf 4.x now uses pax-jdbc: 1. pax-jdbc uses ConfigAdmin/cfg to describe the datasource configuration, and use a managed factory to create the corresponding datasource service: we don't have the blueprint dependency anymore. 2. the managed factory allows to reload only the datasource, not necessary the service itself. The usage of the datasource service itself don't change (it's a service that you can use with blueprint, ds, or pure OSGi). Exposing a datasource service using blueprint is still supported but you have to install the aries-blueprint feature. Regards JB On 11/06/2018 18:35, ceugster wrote: > What do you mean by > jbonofre wrote >> By the way, why don't you use pax-jdbc ? We removed the blueprint >> approach for pax-jdbc to avoid the blueprint dependency and provide a >> more dynamic approach. > > ? Are there bundles that I have to uninstall and install? > > Regards > Christian > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: Unresolved dependency using blueprint transaction
What do you mean by jbonofre wrote > By the way, why don't you use pax-jdbc ? We removed the blueprint > approach for pax-jdbc to avoid the blueprint dependency and provide a > more dynamic approach. ? Are there bundles that I have to uninstall and install? Regards Christian -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
that was it! It seems that I have to learn more about this dynamic import, i did not know about. Thanks -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
Can you try a bundle:refresh too ? Regards JB On 11/06/2018 13:43, ceugster wrote: > Yes bundle derby is installed as shown in my last message. Now I did a > > 245 │ Active │ 80 │ 1.0.1 │ Apache Aries Blueprint Web > OSGI > karaf@root()> bundle:dynamic-import 245 > Enabling dynamic imports on bundle org.apache.aries.blueprint.webosgi [245] > karaf@root()> bundle:info 245 > > but nothing changes. The blueprint of my datasource bundle is: > > > http://www.osgi.org/xmlns/blueprint/v1.0.0";> >class="org.apache.derby.jdbc.EmbeddedDataSource"> > > > >class="org.apache.derby.jdbc.EmbeddedXADataSource"> > > > > > >value="jdbc/fancyfoodsdb"/> > > > > >value="jdbc/xafancyfoodsdb"/> > > > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: Unresolved dependency using blueprint transaction
That's not the correct bundle for the import. Your bundle blueprint is the one of the xml. Check this bundle (241 according to your previous e-mail). By the way, why don't you use pax-jdbc ? We removed the blueprint approach for pax-jdbc to avoid the blueprint dependency and provide a more dynamic approach. Regards JB On 11/06/2018 13:43, ceugster wrote: > Yes bundle derby is installed as shown in my last message. Now I did a > > 245 │ Active │ 80 │ 1.0.1 │ Apache Aries Blueprint Web > OSGI > karaf@root()> bundle:dynamic-import 245 > Enabling dynamic imports on bundle org.apache.aries.blueprint.webosgi [245] > karaf@root()> bundle:info 245 > > but nothing changes. The blueprint of my datasource bundle is: > > > http://www.osgi.org/xmlns/blueprint/v1.0.0";> >class="org.apache.derby.jdbc.EmbeddedDataSource"> > > > >class="org.apache.derby.jdbc.EmbeddedXADataSource"> > > > > > >value="jdbc/fancyfoodsdb"/> > > > > >value="jdbc/xafancyfoodsdb"/> > > > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: Unresolved dependency using blueprint transaction
Yes bundle derby is installed as shown in my last message. Now I did a 245 │ Active │ 80 │ 1.0.1 │ Apache Aries Blueprint Web OSGI karaf@root()> bundle:dynamic-import 245 Enabling dynamic imports on bundle org.apache.aries.blueprint.webosgi [245] karaf@root()> bundle:info 245 but nothing changes. The blueprint of my datasource bundle is: http://www.osgi.org/xmlns/blueprint/v1.0.0";> -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
Do you have the derby bundle installed ? Can you check the dynamic import of the blueprint bundle ? Regards JB On 11/06/2018 12:35, ceugster wrote: > HI > in the meantime I did a step back following the tutorial in enterprise osgi > in action by Holly Cummins and Timothy Ward. I stuck while creating a data > source in the old fashion blueprint way (using xml). I get a stack trace > (see below) when registering the data source: > > karaf@root()> diag 241 > Fancyfoods Derby Datasource (241) > - > Status: Failure > Declarative Services > Blueprint > 11.06.18 12:18 > Exception: > Unable to load class org.apache.derby.jdbc.EmbeddedDataSource from recipe > BeanRecipe[name='derbyDataSource'] > org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to > load class org.apache.derby.jdbc.EmbeddedDataSource from recipe > BeanRecipe[name='derbyDataSource'] > at > org.apache.aries.blueprint.di.AbstractRecipe.doLoadType(AbstractRecipe.java:196) > at > org.apache.aries.blueprint.di.AbstractRecipe.loadType(AbstractRecipe.java:162) > at > org.apache.aries.blueprint.container.BeanRecipe.loadClass(BeanRecipe.java:251) > at > org.apache.aries.blueprint.container.BeanRecipe.getType(BeanRecipe.java:772) > at > org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromType(BeanRecipe.java:342) > at > org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:283) > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:685) > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666) > at > org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) > at > org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360) > at > org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:190) > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:716) > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:413) > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278) > at > org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299) > at > org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268) > at > org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264) > at > org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254) > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) > at > org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) > at > org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) > at > org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) > at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) > at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) > at > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) > at java.lang.Thread.run(Thread.java:748) > Caused by: java.lang.ClassNotFoundException: > org.apache.derby.jdbc.EmbeddedDataSource not found by > fancyfoods.datasource.derby [241] > at > org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) > at > org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) > at > org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1927) > at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:978) > at > org.apache.ari
Re: Unresolved dependency using blueprint transaction
HI in the meantime I did a step back following the tutorial in enterprise osgi in action by Holly Cummins and Timothy Ward. I stuck while creating a data source in the old fashion blueprint way (using xml). I get a stack trace (see below) when registering the data source: karaf@root()> diag 241 Fancyfoods Derby Datasource (241) - Status: Failure Declarative Services Blueprint 11.06.18 12:18 Exception: Unable to load class org.apache.derby.jdbc.EmbeddedDataSource from recipe BeanRecipe[name='derbyDataSource'] org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to load class org.apache.derby.jdbc.EmbeddedDataSource from recipe BeanRecipe[name='derbyDataSource'] at org.apache.aries.blueprint.di.AbstractRecipe.doLoadType(AbstractRecipe.java:196) at org.apache.aries.blueprint.di.AbstractRecipe.loadType(AbstractRecipe.java:162) at org.apache.aries.blueprint.container.BeanRecipe.loadClass(BeanRecipe.java:251) at org.apache.aries.blueprint.container.BeanRecipe.getType(BeanRecipe.java:772) at org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromType(BeanRecipe.java:342) at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:283) at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:685) at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666) at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360) at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:190) at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:716) at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:413) at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278) at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299) at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268) at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264) at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDataSource not found by fancyfoods.datasource.derby [241] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1927) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:978) at org.apache.aries.blueprint.container.BlueprintContainerImpl.loadClass(BlueprintContainerImpl.java:450) at org.apache.aries.blueprint.container.BlueprintRepository.loadClass(BlueprintRepository.java:524) at org.apache.aries.blueprint.container.GenericType.pa
Re: Unresolved dependency using blueprint transaction
You can also add the config in a feature.xml, I will create the file in the "etc" directory when installing your feature : osgi.jdbc.driver.class=org.apache.derby.jdbc.EmbeddedDriver dataSourceName=jdbc/vineyard url=jdbc:derby:data/vineyard/derby;create=true François Papon fpa...@apache.org Open3m - https://www.open3m.io Le 08/06/2018 à 19:09, Francois Papon a écrit : > Here an example of datasource-file for Apache Derby database : > > osgi.jdbc.driver.class=org.apache.derby.jdbc.EmbeddedDriver > dataSourceName=jdbc/vineyard > url=jdbc:derby:data/vineyard/derby;create=true > > > François Papon > fpa...@apache.org > Open3m - https://www.open3m.io > > Le 08/06/2018 à 18:45, Jean-Baptiste Onofré a écrit : >> Yes, you have to install the datasource "provider". >> >> And then, use jdbc:ds-create that create >> etc/org.ops4j.datasource-xxx.cfg file >> >> Regards >> JB >> >> On 08/06/2018 16:24, ceugster wrote: >>> Hi >>> I tried to follow the enterprise jdbc section of your documentation and had >>> some time to find out, that besides >>> >>> karaf@root()> feature:repo-add pax-jdbc >>> karaf@root()> feature:install pax-jdbc >>> karaf@root()> feature:install pax-jdbc-config >>> karaf@root()> feature:install jdbc >>> >>> there should also be mentioned: >>> >>> karaf@root()> feature:install pax-jdbc-derby >>> >>> if one would try the example to create a datasource. I do not know, how I >>> can you inform better than this way. >>> >>> >>> >>> >>> -- >>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html >>>
Re: Unresolved dependency using blueprint transaction
Here an example of datasource-file for Apache Derby database : osgi.jdbc.driver.class=org.apache.derby.jdbc.EmbeddedDriver dataSourceName=jdbc/vineyard url=jdbc:derby:data/vineyard/derby;create=true François Papon fpa...@apache.org Open3m - https://www.open3m.io Le 08/06/2018 à 18:45, Jean-Baptiste Onofré a écrit : > Yes, you have to install the datasource "provider". > > And then, use jdbc:ds-create that create > etc/org.ops4j.datasource-xxx.cfg file > > Regards > JB > > On 08/06/2018 16:24, ceugster wrote: >> Hi >> I tried to follow the enterprise jdbc section of your documentation and had >> some time to find out, that besides >> >> karaf@root()> feature:repo-add pax-jdbc >> karaf@root()> feature:install pax-jdbc >> karaf@root()> feature:install pax-jdbc-config >> karaf@root()> feature:install jdbc >> >> there should also be mentioned: >> >> karaf@root()> feature:install pax-jdbc-derby >> >> if one would try the example to create a datasource. I do not know, how I >> can you inform better than this way. >> >> >> >> >> -- >> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html >>
Re: Unresolved dependency using blueprint transaction
Yes, you have to install the datasource "provider". And then, use jdbc:ds-create that create etc/org.ops4j.datasource-xxx.cfg file Regards JB On 08/06/2018 16:24, ceugster wrote: > Hi > I tried to follow the enterprise jdbc section of your documentation and had > some time to find out, that besides > > karaf@root()> feature:repo-add pax-jdbc > karaf@root()> feature:install pax-jdbc > karaf@root()> feature:install pax-jdbc-config > karaf@root()> feature:install jdbc > > there should also be mentioned: > > karaf@root()> feature:install pax-jdbc-derby > > if one would try the example to create a datasource. I do not know, how I > can you inform better than this way. > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: Unresolved dependency using blueprint transaction
Hi I tried to follow the enterprise jdbc section of your documentation and had some time to find out, that besides karaf@root()> feature:repo-add pax-jdbc karaf@root()> feature:install pax-jdbc karaf@root()> feature:install pax-jdbc-config karaf@root()> feature:install jdbc there should also be mentioned: karaf@root()> feature:install pax-jdbc-derby if one would try the example to create a datasource. I do not know, how I can you inform better than this way. -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
Hi JB I did Feature:install the Transaction Feature. Could it be, that I have a Version Problem? How can I find out? -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
I'm pretty sure you will love the new examples where the readme mentions all the steps/features to install. Regards JB Le 7 juin 2018 à 19:47, à 19:47, ceugster a écrit: >Hi François >this did not solve the problem. I think there are unresolved >dependencies, >but I don't see what bundles are missing. > > > > >-- >Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
Did you install the transaction feature (not the bundle) ? It brings the transaction.blueprint namespace. Regards JB Le 7 juin 2018 à 19:47, à 19:47, ceugster a écrit: >Hi François >this did not solve the problem. I think there are unresolved >dependencies, >but I don't see what bundles are missing. > > > > >-- >Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
You need to install the "transaction" feature: > repo-add enterprise > feature:install transaction Cheers, Guillaume 2018-06-06 20:05 GMT+02:00 ceugster : > Hi > I try to implement a jpa bundle into karaf 4.2.0. with tycho i build the > bundles, that works fine. Then in karaf I do feature:repo-add and > feature:install works well too. But listing the bundles shows up status > grace period for my jpa bundle. bundle:diag shows: > > Status: GracePeriod > Blueprint > 06.06.18, 19:59 > Missing dependencies: > (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi. > service.blueprint.namespace=http://aries.apache.org/xmlns/ > transactions/v2.0.0)) > Declarative Services > > I tried other versions of transactions too (e.g. v1.0.0, v1.1.0) How can I > resolve this problem? > Thank you for any hints! > Christian > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Guillaume Nodet
Re: Unresolved dependency using blueprint transaction
Hi François this did not solve the problem. I think there are unresolved dependencies, but I don't see what bundles are missing. -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
Hi, In your error trace, we can see : Caused by: org.xml.sax.SAXParseException; cvc-complex-type.2.4.c: xDCbereinstimmungsplatzhalter ist streng, aber es kann keine Deklaration fxFCr Element 'jpa:context' gefunden werden. In your bundle list you have the 2.2.0 version of the Java Persistance API and the 2.6.1 version of the Apache Aries JPA : 67 │ Active │ 80 │ 2.2.0.v201708071007 │ Java Persistence API 2.2 68 │ Active │ 80 │ 2.6.1 │ Apache Aries JPA but in your blueprint.xml you define 2.0.0 xmlns version. Maybe you should align the version in your blueprint.xml François Papon fpa...@apache.org Open3m - https://www.open3m.io Le 07/06/2018 à 18:41, ceugster a écrit : > ... and the blueprint is: > > http://www.osgi.org/xmlns/blueprint/v1.0.0"; > xmlns:jpa="http://aries.apache.org/xmlns/jpa/v2.0.0"; > xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.1.0";> > > class="ch.eugster.herakles.persistence.jpa.query.JpaQuery"> > > > > > > interface="ch.eugster.herakles.persistence.api.query.Query" > /> > > class="ch.eugster.herakles.persistence.jpa.query.Populator" > init-method="populate" activation="eager"> > > > > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
... and the blueprint is: http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:jpa="http://aries.apache.org/xmlns/jpa/v2.0.0"; xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.1.0";> -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
Erf, we don't see your change on the mailing list (I guess you used the nabble forum). Can you send a new message with the blueprint please ? Thanks, Regards JB On 07/06/2018 16:25, ceugster wrote: > Hi > sorry for that, i corrected the message and added the blueprint, hope it > helps :) > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: Unresolved dependency using blueprint transaction
Hi sorry for that, i corrected the message and added the blueprint, hope it helps :) -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
That's the persistence.xml, not the blueprint. The problem seems in your blueprint where you use . Regards JB On 07/06/2018 15:32, ceugster wrote: > ... and the blueprint is: > > > http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/persistence > http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"; version="2.0" > xmlns="http://java.sun.com/xml/ns/persistence";> > > > osgi.service/jdbc/xaheraklesdb > > osgi.service/jdbc/heraklesdb > > ch.eugster.herakles.persistence.jpa.util.URIConverter > > ch.eugster.herakles.persistence.jpa.util.UUIDConverter > > > ch.eugster.herakles.persistence.jpa.model.JpaAbstractEntity > > ch.eugster.herakles.persistence.jpa.model.JpaPermission > > ch.eugster.herakles.persistence.jpa.model.JpaRolePermission > > ch.eugster.herakles.persistence.jpa.model.JpaSystemRole > > ch.eugster.herakles.persistence.jpa.model.JpaSystemUser > true > > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: Unresolved dependency using blueprint transaction
... and the blueprint is: http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"; version="2.0" xmlns="http://java.sun.com/xml/ns/persistence";> osgi.service/jdbc/xaheraklesdb osgi.service/jdbc/heraklesdb ch.eugster.herakles.persistence.jpa.util.URIConverter ch.eugster.herakles.persistence.jpa.util.UUIDConverter ch.eugster.herakles.persistence.jpa.model.JpaAbstractEntity ch.eugster.herakles.persistence.jpa.model.JpaPermission ch.eugster.herakles.persistence.jpa.model.JpaRolePermission ch.eugster.herakles.persistence.jpa.model.JpaSystemRole ch.eugster.herakles.persistence.jpa.model.JpaSystemUser true -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
Hi I changed the jdk to jdk-9. And indeed there is no more complaining about dependencies. Thank you for your help! Now I get the following message, when I invoke feature:install my bundles. The jpa bundle failed to start and bundle:diag says: Herakles Jpa Persistence Bundle (133) - Status: Failure Blueprint 07.06.18, 15:27 Exception: Unable to validate xml org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to validate xml at org.apache.aries.blueprint.parser.Parser.validate(Parser.java:349) at org.apache.aries.blueprint.parser.Parser.validate(Parser.java:336) at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:345) at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278) at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299) at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268) at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264) at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161) at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1116) at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:996) at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025) at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.base/java.lang.Thread.run(Thread.java:844) Caused by: org.xml.sax.SAXParseException; cvc-complex-type.2.4.c: xDCbereinstimmungsplatzhalter ist streng, aber es kann keine Deklaration fxFCr Element 'jpa:context' gefunden werden. at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204) at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:135) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:395) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:326) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:283) at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:510) at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3587) at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2142) at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:828) at java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(DOMValidatorHelper.java:277) at java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.va
Re: Unresolved dependency using blueprint transaction
Oh right, Java 10 is not fully supported yet. I sent a new aries proxy release on vote this morning to have a better support of java 10 and 11. It's planned for Karaf 4.2.1. Regards JB Le 7 juin 2018 à 13:12, à 13:12, Francois Papon a écrit: >Hi, > >You should use Java <= 9 for Karaf 4.2.0. > >Can you tried with Java 9 ? > > >François Papon >fpa...@apache.org >Open3m - https://www.open3m.io > >Le 07/06/2018 à 16:06, ceugster a écrit : >> Hi >> I reinstalled apache-karaf-4.2.0 from scratch and did afterwards: >> >> feature:install pax-transx-tm >> feature:install aries-blueprint >> feature:install eclipselink >> >> on the last entry I got the following stack trace (see later on) >saying, >> invalid java version 54: >> >> My system:property >> >> os.arch=x86_64 >> os.name=Mac OS X >> os.version=10.13.5 >> path.separator=: >> socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16 >> sun.arch.data.model=64 >> >sun.boot.library.path=/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/lib >> sun.cpu.endian=little >> sun.cpu.isalist= >> sun.io.unicode.encoding=UnicodeBig >> sun.java.command=org.apache.karaf.main.Main >> sun.java.launcher=SUN_STANDARD >> sun.jnu.encoding=UTF-8 >> sun.management.compiler=HotSpot 64-Bit Tiered Compilers >> sun.os.patch.level=unknown >> user.country=CH >> >user.dir=/Users/christian/Projekte/ceugster/Frameworks/apache-karaf-4.2.0 >> user.home=/Users/christian >> user.language=de >> user.name=christian >> user.timezone=Europe/Zurich >> xml.catalog.files= >> karaf@root()> > >> >> and the stack trace: >> >> karaf@root()> feature:install eclipselink >> 13:59:37.522 [features-3-thread-1] ERROR >> org.apache.aries.blueprint.container.ServiceRecipe - Error retrieving >> service from ServiceRecipe[name='.component-4'] >> org.osgi.service.blueprint.container.ComponentDefinitionException: >Error >> setting property: PropertyDescriptor getter: >> null, setter: [class >> >org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(interface >> org.osgi.service.blueprint.container.BlueprintContainer)] >> at >> >org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:821) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666) >> ~[?:?] >> at >> >org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) >> ~[?:?] >> at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] >> at >> >org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) >> ~[?:?] >> at >> >org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62) >> ~[?:?] >> at >> >org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:268) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:685) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666) >> ~[?:?] >> at >> >org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:285) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:252) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:365) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:540) >> ~[?:?] >> at >> >org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347) >> ~[?:?] >> at >> >org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247) >> ~[?:?] >> at >> >org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350) >> ~[?:?] >> at org.apache.felix.framework.Felix.getService(Felix.java:3737) >~[?:?] >> at >> >org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.BlueprintEventDispatcher$2.addingService(BlueprintEventDispatcher.java:95) >> ~[?:?] >> at >> >org.apache.aries.blueprint.container.BlueprintEventDispatcher$2.addingService(BlueprintEventDispatcher.java:93) >> ~[?:?] >> at >> >org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) >> ~[?:?] >
Re: Unresolved dependency using blueprint transaction
Hi, You should use Java <= 9 for Karaf 4.2.0. Can you tried with Java 9 ? François Papon fpa...@apache.org Open3m - https://www.open3m.io Le 07/06/2018 à 16:06, ceugster a écrit : > Hi > I reinstalled apache-karaf-4.2.0 from scratch and did afterwards: > > feature:install pax-transx-tm > feature:install aries-blueprint > feature:install eclipselink > > on the last entry I got the following stack trace (see later on) saying, > invalid java version 54: > > My system:property > > os.arch=x86_64 > os.name=Mac OS X > os.version=10.13.5 > path.separator=: > socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16 > sun.arch.data.model=64 > sun.boot.library.path=/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/lib > sun.cpu.endian=little > sun.cpu.isalist= > sun.io.unicode.encoding=UnicodeBig > sun.java.command=org.apache.karaf.main.Main > sun.java.launcher=SUN_STANDARD > sun.jnu.encoding=UTF-8 > sun.management.compiler=HotSpot 64-Bit Tiered Compilers > sun.os.patch.level=unknown > user.country=CH > user.dir=/Users/christian/Projekte/ceugster/Frameworks/apache-karaf-4.2.0 > user.home=/Users/christian > user.language=de > user.name=christian > user.timezone=Europe/Zurich > xml.catalog.files= > karaf@root()> > > > > and the stack trace: > > karaf@root()> feature:install eclipselink > 13:59:37.522 [features-3-thread-1] ERROR > org.apache.aries.blueprint.container.ServiceRecipe - Error retrieving > service from ServiceRecipe[name='.component-4'] > org.osgi.service.blueprint.container.ComponentDefinitionException: Error > setting property: PropertyDescriptor null, setter: [class > org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(interface > org.osgi.service.blueprint.container.BlueprintContainer)] > at > org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:821) > ~[?:?] > at > org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784) > ~[?:?] > at > org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765) > ~[?:?] > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699) > ~[?:?] > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666) > ~[?:?] > at > org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) > ~[?:?] > at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] > at > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) > ~[?:?] > at > org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62) > ~[?:?] > at > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108) > ~[?:?] > at > org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:268) > ~[?:?] > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:685) > ~[?:?] > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666) > ~[?:?] > at > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108) > ~[?:?] > at > org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:285) > ~[?:?] > at > org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:252) > ~[?:?] > at > org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:365) > ~[?:?] > at > org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:540) > ~[?:?] > at > org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347) > ~[?:?] > at > org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247) > ~[?:?] > at > org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350) > ~[?:?] > at org.apache.felix.framework.Felix.getService(Felix.java:3737) ~[?:?] > at > org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470) > ~[?:?] > at > org.apache.aries.blueprint.container.BlueprintEventDispatcher$2.addingService(BlueprintEventDispatcher.java:95) > ~[?:?] > at > org.apache.aries.blueprint.container.BlueprintEventDispatcher$2.addingService(BlueprintEventDispatcher.java:93) > ~[?:?] > at > org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) > ~[?:?] > at > org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) > ~[?:?] > at > org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) > ~[?:?] > at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
RE: Unresolved dependency using blueprint transaction
I don't see the Aries blueprint bundles. Did you have install the aries-blueprint before any other features ? Regards JB Le 7 juin 2018 à 12:31, à 12:31, ceugster a écrit: >Hi > >I tried to restart the bundle in question, but nothing changed. > >This is the list of my bundle:list > >karaf@root()> feature:uninstall pax-cdi >karaf@root()> bundle:list >START LEVEL 100 , List Threshold: 50 > ID │ State │ Lvl │ Version │ Name >┼─┼─┼─┼ >21 │ Active │ 80 │ 4.2.0 │ Apache Karaf :: OSGi >Services :: Event >57 │ Active │ 80 │ 3.0.0 │ Expression Language >3.0 >API > 58 │ Active │ 80 │ 1.2.0 │ CDI APIs >59 │ Active │ 80 │ 1.2 │ javax.interceptor >API >60 │ Active │ 80 │ 1.2 │ javax.transaction >API >61 │ Active │ 80 │ 1.1.1 │ Apache Aries >Transaction >Blueprint >62 │ Active │ 80 │ 2.1.0 │ Apache Aries >Transaction >Blueprint >63 │ Active │ 80 │ 1.0.2 │ Apache Felix >Coordinator >Service >64 │ Active │ 80 │ 1.0.0.2 │ Apache ServiceMix :: >Bundles :: javax.inject > 65 │ Active │ 80 │ 0.2.0 │ pax-transx-tm-api >66 │ Active │ 80 │ 0.2.0 │ >pax-transx-tm-geronimo >67 │ Active │ 80 │ 2.2.0.v201708071007 │ Java Persistence API >2.2 > 68 │ Active │ 80 │ 2.6.1 │ Apache Aries JPA >Container adapter for EclipseLink > 69 │ Active │ 80 │ 3.5.2.v201605171345 │ EclipseLink ANTLR > 70 │ Active │ 80 │ 6.0.0.v201710052159 │ EclipseLink ASM > 71 │ Active │ 80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink Core > 72 │ Active │ 80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink JPA > 73 │ Active │ 80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink Hermes >Parser >96 │ Active │ 80 │ 4.6.0 │ Apache XBean OSGI >Bundle >Utilities > 97 │ Active │ 80 │ 4.6.0 │ Apache XBean :: >Classpath Resource Finder >135 │ Active │ 80 │ 1.9.2.1 │ Apache ServiceMix >:: >Bundles :: jasypt >136 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC >Generic >Driver Extender >137 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC >Config >138 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC >Pooling >Support Base >139 │ Active │ 80 │ 1.0.0.201505202023 │ >org.osgi:org.osgi.service.jdbc >145 │ Active │ 80 │ 4.2.0 │ Apache Karaf :: >JDBC :: >Core >149 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC >Apache >Derby Driver Adapter >157 │ Active │ 80 │ 1.0.0.201806071126 │ Herakles >Persistence API >Bundle >158 │ GracePeriod │ 80 │ 1.0.0.201806071126 │ Herakles Jpa >Persistence >Bundle >159 │ Active │ 80 │ 1.0.0.201806071126 │ Herakles Derby >Datasource Bundle >160 │ Active │ 80 │ 10.14.200.1828579 │ Apache Derby 10.14 >karaf@root()> > >and the bundle:diag result > >karaf@root()> bundle:diag 158 >Herakles Jpa Persistence Bundle (158) >- >Status: GracePeriod >Blueprint >07.06.18, 13:26 >Missing dependencies: >(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v1.1.0)) >(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/jpa/v2.0.0)) > >Declarative Services > > > > > >-- >Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
RE: Unresolved dependency using blueprint transaction
Hi I reinstalled apache-karaf-4.2.0 from scratch and did afterwards: feature:install pax-transx-tm feature:install aries-blueprint feature:install eclipselink on the last entry I got the following stack trace (see later on) saying, invalid java version 54: My system:property os.arch=x86_64 os.name=Mac OS X os.version=10.13.5 path.separator=: socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16 sun.arch.data.model=64 sun.boot.library.path=/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/lib sun.cpu.endian=little sun.cpu.isalist= sun.io.unicode.encoding=UnicodeBig sun.java.command=org.apache.karaf.main.Main sun.java.launcher=SUN_STANDARD sun.jnu.encoding=UTF-8 sun.management.compiler=HotSpot 64-Bit Tiered Compilers sun.os.patch.level=unknown user.country=CH user.dir=/Users/christian/Projekte/ceugster/Frameworks/apache-karaf-4.2.0 user.home=/Users/christian user.language=de user.name=christian user.timezone=Europe/Zurich xml.catalog.files= karaf@root()> and the stack trace: karaf@root()> feature:install eclipselink 13:59:37.522 [features-3-thread-1] ERROR org.apache.aries.blueprint.container.ServiceRecipe - Error retrieving service from ServiceRecipe[name='.component-4'] org.osgi.service.blueprint.container.ComponentDefinitionException: Error setting property: PropertyDescriptor (InterfaceCombiningClassAdapter.java:79) ~[?:?] at org.apache.aries.proxy.impl.interfaces.ProxyClassLoader.createProxyClass(ProxyClassLoader.java:155) ~[?:?] at org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(InterfaceProxyGenerator.java:97) ~[?:?] at org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:80) ~[?:?] at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:77) ~[?:?] at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:42) ~[?:?] at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:332) ~[?:?] at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:125) ~[?:?] at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) ~[?:?] at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62) ~[?:?] at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:810) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666) ~[?:?] at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) ~[?:?] at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360) ~[?:?] at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:338) ~[?:?] at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:152) ~[?:?] at org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:788) ~[?:?] at org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(TxNamespaceHandler.java:177) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?] at org.apache.aries.blueprint.utils.ReflectionUtils$MethodPropertyDescriptor.internalSet(ReflectionUtils.java:662) ~[?:?] at org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.set(ReflectionUtils.java:412) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:819) ~[?:?] ... 65 more karaf@root()> java -- Sent from: htt
RE: Unresolved dependency using blueprint transaction
Hi I tried to restart the bundle in question, but nothing changed. This is the list of my bundle:list karaf@root()> feature:uninstall pax-cdi karaf@root()> bundle:list START LEVEL 100 , List Threshold: 50 ID │ State │ Lvl │ Version │ Name ┼─┼─┼─┼ 21 │ Active │ 80 │ 4.2.0 │ Apache Karaf :: OSGi Services :: Event 57 │ Active │ 80 │ 3.0.0 │ Expression Language 3.0 API 58 │ Active │ 80 │ 1.2.0 │ CDI APIs 59 │ Active │ 80 │ 1.2 │ javax.interceptor API 60 │ Active │ 80 │ 1.2 │ javax.transaction API 61 │ Active │ 80 │ 1.1.1 │ Apache Aries Transaction Blueprint 62 │ Active │ 80 │ 2.1.0 │ Apache Aries Transaction Blueprint 63 │ Active │ 80 │ 1.0.2 │ Apache Felix Coordinator Service 64 │ Active │ 80 │ 1.0.0.2 │ Apache ServiceMix :: Bundles :: javax.inject 65 │ Active │ 80 │ 0.2.0 │ pax-transx-tm-api 66 │ Active │ 80 │ 0.2.0 │ pax-transx-tm-geronimo 67 │ Active │ 80 │ 2.2.0.v201708071007 │ Java Persistence API 2.2 68 │ Active │ 80 │ 2.6.1 │ Apache Aries JPA Container adapter for EclipseLink 69 │ Active │ 80 │ 3.5.2.v201605171345 │ EclipseLink ANTLR 70 │ Active │ 80 │ 6.0.0.v201710052159 │ EclipseLink ASM 71 │ Active │ 80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink Core 72 │ Active │ 80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink JPA 73 │ Active │ 80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink Hermes Parser 96 │ Active │ 80 │ 4.6.0 │ Apache XBean OSGI Bundle Utilities 97 │ Active │ 80 │ 4.6.0 │ Apache XBean :: Classpath Resource Finder 135 │ Active │ 80 │ 1.9.2.1 │ Apache ServiceMix :: Bundles :: jasypt 136 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC Generic Driver Extender 137 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC Config 138 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC Pooling Support Base 139 │ Active │ 80 │ 1.0.0.201505202023 │ org.osgi:org.osgi.service.jdbc 145 │ Active │ 80 │ 4.2.0 │ Apache Karaf :: JDBC :: Core 149 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC Apache Derby Driver Adapter 157 │ Active │ 80 │ 1.0.0.201806071126 │ Herakles Persistence API Bundle 158 │ GracePeriod │ 80 │ 1.0.0.201806071126 │ Herakles Jpa Persistence Bundle 159 │ Active │ 80 │ 1.0.0.201806071126 │ Herakles Derby Datasource Bundle 160 │ Active │ 80 │ 10.14.200.1828579 │ Apache Derby 10.14 karaf@root()> and the bundle:diag result karaf@root()> bundle:diag 158 Herakles Jpa Persistence Bundle (158) - Status: GracePeriod Blueprint 07.06.18, 13:26 Missing dependencies: (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v1.1.0)) (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/jpa/v2.0.0)) Declarative Services -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
RE: Unresolved dependency using blueprint transaction
Hi, I have also run into this issue. I think there is a bug in Karaf 4.2.0 related to blueprint namespace loading. It does not happen all the time, but when it is the case, the solution is to manually restart bundle org.apache.aries.transaction.blueprint-2.1.0. Regards, -- Nicolas Dutertry -Message d'origine- De : ceugster [mailto:christian.eugs...@gmx.net] Envoyé : mercredi 6 juin 2018 21:32 À : user@karaf.apache.org Objet : Re: Unresolved dependency using blueprint transaction Hi JB because I was not sure if I did feature:install of aries-blueprint and transaction in the right order, I installed a clean version of karaf-4.2 and then feature:install aries-blueprint feature:install transactions feature:install eclipselink feature:install my bundles then a bundle:diag showed following: karaf@root()> bundle:diag 75 Herakles Jpa Persistence Bundle (75) Status: GracePeriod Blueprint 06.06.18, 21:26 Missing dependencies: (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v2.0.0)) (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/jpa/v2.0.0)) it seems even worse than before!? Do you have an idea, what could be the solution to this? Thank you! Christian -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
Hi JB because I was not sure if I did feature:install of aries-blueprint and transaction in the right order, I installed a clean version of karaf-4.2 and then feature:install aries-blueprint feature:install transactions feature:install eclipselink feature:install my bundles then a bundle:diag showed following: karaf@root()> bundle:diag 75 Herakles Jpa Persistence Bundle (75) Status: GracePeriod Blueprint 06.06.18, 21:26 Missing dependencies: (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v2.0.0)) (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/jpa/v2.0.0)) it seems even worse than before!? Do you have an idea, what could be the solution to this? Thank you! Christian -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Unresolved dependency using blueprint transaction
Hi Christian, The transaction namespace handler is provided by the transaction feature "conditionaly" of aries-blueprint. So, did you installed aries-blueprint feature before transaction ? Regards JB On 06/06/2018 20:05, ceugster wrote: > Hi > I try to implement a jpa bundle into karaf 4.2.0. with tycho i build the > bundles, that works fine. Then in karaf I do feature:repo-add and > feature:install works well too. But listing the bundles shows up status > grace period for my jpa bundle. bundle:diag shows: > > Status: GracePeriod > Blueprint > 06.06.18, 19:59 > Missing dependencies: > (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v2.0.0)) > > Declarative Services > > I tried other versions of transactions too (e.g. v1.0.0, v1.1.0) How can I > resolve this problem? > Thank you for any hints! > Christian > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com