It looks like you installed the osgi.core bundle (ID 254). If so, please
don't do it, it's already available.
Regards
JB
On 10/08/2014 06:42 PM, Rabe, Jens wrote:
Hi Jean,
I did, to no avail:
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (3.0.2-SNAPSHOT)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
karaf@root()> list
START LEVEL 100 , List Threshold: 50
ID | State | Lvl | Version | Name
---------------------------------
karaf@root()> feature:install myfeature
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]
karaf@root()> bundle:refresh
karaf@root()> feature:install myfeature
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]
________________________________________
From: Jean-Baptiste Onofré [[email protected]]
Sent: Wednesday, October 08, 2014 6:37 PM
To: [email protected]
Subject: Re: Can anybody help me break these two dependency chains?
Hi Jens,
did you try a bundle:refresh (global) ?
Regards
JB
On 10/08/2014 06:22 PM, Rabe, Jens 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
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com