Hi,

I got it to work, just set the version to org.osgi.framework 4.3.1. 6.0 did not 
work, and I set the scope to "provided".

Now I get another strange error:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load 
bean class: com.mycompany.myservice.Activator; nested exception is 
java.io.FileNotFoundException: class path resource 
[org/springframework/boot/autoconfigure/EnableAutoConfigurationImportSelector.class]
 cannot be opened because it does not exist
        at 
org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:162)
        at 
org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:305)
        at 
org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:243)
        at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:254)
        at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:94)
        at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:611)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
        at 
de.fraunhofer.iwes.medas.structure.hb.Activator.start(Activator.java:27)
        at 
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:478)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:436)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:375)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:364)
        at Proxy9adf784c_7cc3_4acd_8820_dc07f2061389.installFeature(Unknown 
Source)
        at 
org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:67)
        at 
org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:38)
        at 
org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at Proxy9c26c6f7_556c_4af6_9bb0_f634d392b60b.execute(Unknown Source)[:]
        at Proxy9c26c6f7_556c_4af6_9bb0_f634d392b60b.execute(Unknown Source)[:]
        at 
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
        at 
org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:203)
        at 
org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:115)
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_11]
        at 
org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[26:org.apache.karaf.jaas.modules:3.0.2.SNAPSHOT]
        at 
org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:108)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
Caused by: java.io.FileNotFoundException: class path resource 
[org/springframework/boot/autoconfigure/EnableAutoConfigurationImportSelector.class]
 cannot be opened because it does not exist
        at 
org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at 
org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:50)
        at 
org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:82)
        at 
org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102)
        at 
org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:77)
        at 
org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getRelated(ConfigurationClassParser.java:779)
        at 
org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getAnnotationAttributes(ConfigurationClassParser.java:763)
        at 
org.springframework.context.annotation.ConfigurationClassParser.collectImports(ConfigurationClassParser.java:375)
        at 
org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:349)
        at 
org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:258)
        at 
org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:218)
        at 
org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:185)
        at 
org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:155)
        ... 40 more
2014-10-08 18:52:33,235 | ERROR | l for user karaf | SpringApplication          
      | 592 - wrap_mvn_org.springframework.boot_spring-boot_1.1.7.RELEASE - 
0.0.0 | Application startup failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load 
bean class: de.fraunhofer.iwes.medas.structure.hb.Activator; nested exception 
is java.io.FileNotFoundException: class path resource 
[org/springframework/boot/autoconfigure/EnableAutoConfigurationImportSelector.class]
 cannot be opened because it does not exist
        at 
org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:162)
        at 
org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:305)
        at 
org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:243)
        at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:254)
        at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:94)
        at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:611)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
        at 
de.fraunhofer.iwes.medas.structure.hb.Activator.start(Activator.java:27)
        at 
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:478)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:436)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:375)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:364)
        at Proxy9adf784c_7cc3_4acd_8820_dc07f2061389.installFeature(Unknown 
Source)
        at 
org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:67)
        at 
org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:38)
        at 
org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at Proxy9c26c6f7_556c_4af6_9bb0_f634d392b60b.execute(Unknown Source)[:]
        at Proxy9c26c6f7_556c_4af6_9bb0_f634d392b60b.execute(Unknown Source)[:]
        at 
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
        at 
org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:203)
        at 
org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:115)
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_11]
        at 
org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[26:org.apache.karaf.jaas.modules:3.0.2.SNAPSHOT]
        at 
org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:108)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
Caused by: java.io.FileNotFoundException: class path resource 
[org/springframework/boot/autoconfigure/EnableAutoConfigurationImportSelector.class]
 cannot be opened because it does not exist
        at 
org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at 
org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:50)
        at 
org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:82)
        at 
org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102)
        at 
org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:77)
        at 
org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getRelated(ConfigurationClassParser.java:779)
        at 
org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getAnnotationAttributes(ConfigurationClassParser.java:763)
        at 
org.springframework.context.annotation.ConfigurationClassParser.collectImports(ConfigurationClassParser.java:375)
        at 
org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:349)
        at 
org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:258)
        at 
org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:218)
        at 
org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:185)
        at 
org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:155)
        ... 40 more
2014-10-08 18:52:33,286 | ERROR | l for user karaf | ShellUtil                  
      | 25 - org.apache.karaf.shell.console - 3.0.2.SNAPSHOT | Exception caught 
while executing command
java.lang.Exception: Could not start bundle 
mvn:de.fraunhofer.iwes.medas/structure.hb/0.0.1-SNAPSHOT in feature(s) 
medas-kar-0.0.1-SNAPSHOT: Activator start error in bundle 
de.fraunhofer.iwes.medas.structure.hb [589].
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:481)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:436)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:375)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:364)
        at Proxy9adf784c_7cc3_4acd_8820_dc07f2061389.installFeature(Unknown 
Source)
        at 
org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:67)
        at 
org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:38)
        at 
org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at Proxy9c26c6f7_556c_4af6_9bb0_f634d392b60b.execute(Unknown Source)[:]
        at Proxy9c26c6f7_556c_4af6_9bb0_f634d392b60b.execute(Unknown Source)[:]
        at 
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
        at 
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
        at 
org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:203)
        at 
org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:115)
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_11]
        at 
org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[26:org.apache.karaf.jaas.modules:3.0.2.SNAPSHOT]
        at 
org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:108)[25:org.apache.karaf.shell.console:3.0.2.SNAPSHOT]
Caused by: org.osgi.framework.BundleException: Activator start error in bundle 
de.fraunhofer.iwes.medas.structure.hb [589].
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2196)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
        at 
org.apache.karaf.features.internal.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:478)
        ... 23 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: 
Failed to load bean class: de.fraunhofer.iwes.medas.structure.hb.Activator; 
nested exception is java.io.FileNotFoundException: class path resource 
[org/springframework/boot/autoconfigure/EnableAutoConfigurationImportSelector.class]
 cannot be opened because it does not exist
        at 
org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:162)
        at 
org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:305)
        at 
org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:243)
        at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:254)
        at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:94)
        at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:611)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
        at 
de.fraunhofer.iwes.medas.structure.hb.Activator.start(Activator.java:27)
        at 
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146)
        ... 27 more
Caused by: java.io.FileNotFoundException: class path resource 
[org/springframework/boot/autoconfigure/EnableAutoConfigurationImportSelector.class]
 cannot be opened because it does not exist
        at 
org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
        at 
org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:50)
        at 
org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:82)
        at 
org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102)
        at 
org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:77)
        at 
org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getRelated(ConfigurationClassParser.java:779)
        at 
org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getAnnotationAttributes(ConfigurationClassParser.java:763)
        at 
org.springframework.context.annotation.ConfigurationClassParser.collectImports(ConfigurationClassParser.java:375)
        at 
org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:349)
        at 
org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:258)
        at 
org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:218)
        at 
org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:185)
        at 
org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:155)
        ... 40 more

I think it is an OSGi classloader problem as Spring cannot locate the needed 
classes.
________________________________________
From: Jean-Baptiste Onofr? [[email protected]]
Sent: Wednesday, October 08, 2014 6:54 PM
To: [email protected]
Subject: Re: Can anybody help me break these two dependency chains?

Hi Jens,

in your Import-Package, just define an "open" range, for instance
org.osgi.framework without the version of with org.osgi.framework;version=0.

Regards
JB

On 10/08/2014 06:47 PM, Rabe, Jens wrote:
> Hi David,
>
> when I remove osgi.core, it borks about BundleActivator and some other
> OSGi stuff not being able to be found. When setting org.osgi to
> "provided", I get the following:
>
> Error executing command: Could not start bundle
> mvn:com.mycompany/myservice/0.0.1-SNAPSHOT in feature(s)
> myfeature-0.0.1-SNAPSHOT: Unresolved constraint in bundle
> com.mycompany.myservice [463]: Unable to resolve 463.0: missing
> requirement [463.0] osgi.wiring.package;
> (&(osgi.wiring.package=org.osgi.framework)(version>=1.8.0)(!(version>=2.0.0)))
>
> Regards,
> Jens
>
> ------------------------------------------------------------------------
> *From:* David Jencks [[email protected]]
> *Sent:* Wednesday, October 08, 2014 6:42 PM
> *To:* [email protected]
> *Subject:* Re: Can anybody help me break these two dependency chains?
>
> Don't install osgi core as a bundle, it's supplied by the framework?
>
> david jencks
>
> On Oct 8, 2014, at 9:22 AM, "Rabe, Jens" <[email protected]
> <mailto:[email protected]>> wrote:
>
>> Hello,
>>
>> I have the following problem:
>>
>> Error executing command: Could not start bundle
>> mvn:com.mycompany/myservice/0.0.1-SNAPSHOT in feature(s)
>> myfeature-0.0.1-SNAPSHOT: Uses constraint violation. Unable to resolve
>> bundle revision com.mycompany.myservice [207.0] because it is exposed
>> to package 'org.osgi.framework' from bundle revisions osgi.core
>> [254.0] and org.apache.felix.framework [0] via two dependency chains.
>>
>> Chain 1:
>>   com.mycompany.myservice [207.0]
>>     import:
>> (&(osgi.wiring.package=org.osgi.framework)(version>=1.8.0)(!(version>=2.0.0)))
>>      |
>>     export: osgi.wiring.package=org.osgi.framework
>>   osgi.core [254.0]
>>
>> Chain 2:
>>   com.mycompany.myservice [207.0]
>>     import: (osgi.wiring.package=org.springframework.context.annotation)
>>      |
>>     export:
>> osgi.wiring.package=org.springframework.context.annotation;
>> uses:=org.springframework.beans
>>   wrap_mvn_org.springframework_spring-context_4.0.7.RELEASE [211.0]
>>     import: (osgi.wiring.package=org.springframework.beans)
>>      |
>>     export: osgi.wiring.package=org.springframework.beans;
>> uses:=org.springframework.core
>>   wrap_mvn_org.springframework_spring-beans_4.0.7.RELEASE [204.0]
>>     import: (osgi.wiring.package=org.springframework.core)
>>      |
>>     export: osgi.wiring.package=org.springframework.core;
>> uses:=org.apache.commons.logging
>>
>> wrap_mvn_org.springframework_spring-core_4.0.7.RELEASE_Bundle-Version_4.0.7.RELEASE_Export-Package_org.springframework.__version__4.0.7.RELEASE___
>> [195.0]
>>     import: (osgi.wiring.package=org.apache.commons.logging)
>>      |
>>     export: osgi.wiring.package=org.apache.commons.logging;
>> uses:=org.osgi.framework
>>   org.ops4j.pax.logging.pax-logging-api [3.0]
>>     import:
>> (&(osgi.wiring.package=org.osgi.framework)(version>=1.0.0)(!(version>=2.0.0)))
>>      |
>>     export: osgi.wiring.package=org.osgi.framework
>>   org.apache.felix.framework [0]
>>
>> I cannot remove the direct dependency on osgi.core in my myservice bundle.
>>
>> Can anyone guide me how to specify the chain I want to use? Are there
>> any options I could try on my feature.xml?
>>
>> Any help would be greatly appreciated.
>>
>> Regards,
>> Jens
>

--
Jean-Baptiste Onofr?
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to