[OVSDB-128] Constraint violation via two dependency chains when linking with odl-ovsdb-plugin Created: 02/Nov/14  Updated: 19/Oct/17  Resolved: 12/Jun/15

Status: Resolved
Project: ovsdb
Component/s: Plugin
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Srini Seetharaman Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2295

 Description   

In a personal project, I got this exception when loading the OVSDB plugin in Karaf:

Error executing command: Could not start bundle mvn:org.opendaylight.ovsdb/plugin/1.0.0-Helium in feature(s) odl-ovsdb-plugin-1.0.0-Helium: Uses constraint violation. Unable to resolve bundle revision org.opendaylight.ovsdb.plugin [327.0] because it is exposed to package 'org.slf4j' from bundle revisions org.ops4j.pax.logging.pax-logging-api [7.0] and slf4j.api [227.0] via two dependency chains.

Chain 1:
org.opendaylight.ovsdb.plugin [327.0]
import: (&(osgi.wiring.package=org.slf4j)(version>=1.7.0)(!(version>=2.0.0)))

export: osgi.wiring.package=org.slf4j
org.ops4j.pax.logging.pax-logging-api [7.0]

Chain 2:
org.opendaylight.ovsdb.plugin [327.0]
import: (&(osgi.wiring.package=org.opendaylight.ovsdb.lib.message)(version>=1.0.0)(!(version>=2.0.0)))

export: osgi.wiring.package=org.opendaylight.ovsdb.lib.message; uses:=org.slf4j
org.opendaylight.ovsdb.library [324.0]
import: (&(osgi.wiring.package=org.slf4j)(version>=1.7.0)(!(version>=2.0.0)))

export: osgi.wiring.package=org.slf4j
slf4j.api [227.0]



 Comments   
Comment by Flavio Fernandes [ 03/Nov/14 ]

From: Srini Seetharaman <srini.seetharaman@gmail.com>
Date: Mon, Nov 3, 2014 at 2:24 AM
Subject: Re: [ovsdb-dev] Help with a Karaf loading issue
To: Mathieu Lemay <mlemay@inocybe.com>
Cc: "<ovsdb-dev@lists.opendaylight.org>" <ovsdb-dev@lists.opendaylight.org>

Hi Mathieu:
Once I explicitly added "odl-base-all" in the karaf dependency for my project (in features/src/main/resources/features.xml), the error went away. Even though the odl-base-all was getting included in the bootFeatures, that was not sufficient. I had to include it in the karaf feature dependencies for this to be resolved.

I'll mark the bug as worksforme with my above note.

Srini.

On Sun, Nov 2, 2014 at 6:51 PM, Mathieu Lemay <mlemay@inocybe.com> wrote:
Hi Srini... I'm good thanks for asking..

I will take a look tomorrow am and will keep you posted...

Cheers
Mathieu

On Sat, Nov 1, 2014 at 11:20 PM, Srini Seetharaman <srini.seetharaman@gmail.com> wrote:
Hi Mathieu
Hope you're well. I'm running into an issue with using the ovsdb plugin with a different project. When I link it, I get the error shown in this bug: https://bugs.opendaylight.org/show_bug.cgi?id=2295

I read online (in this thread https://developer.jboss.org/message/900565) that I should use slf4j implementation from the pax.logging and not from org.slf4j. So, it said I need to remove the dependency on slf4j.api bundle. I can remove that in the ovsdb plugin pom, but is there any other place in the karaf-empty or otherwise where we load the slf4j.api bundle?

Thanks
Srini.

Generated at Wed Feb 07 20:35:34 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.