Hi 

I am using Apache karaf in which felix framework is enabled.

While installing a feature in Apache Karaf , got an exception 

opendaylight-user@root>bundle:restart 166
Error executing command: Error restarting bundles:
        Unable to start bundle 166: The bundle
"com.overturenetworks.odl.controller-impl_1.0.0.SNAPSHOT [166]" could not be
resolved. Reason: Package uses conflict: Import-Package:
org.apache.http.entity; version="0.0.0"


After googling , came to know that "Dependency Chain" can help in root
causing the issue.* but I do not know the steps to follow to get this
dependency chain printed in the logs or osgi console*, please help

I enabled log level to debug in the Karaf configuration files, but still
could not see the chain printed




More information about the issue i am facing

opendaylight-user@root>package:exports -d
Package Name                             | Version | Exporting bundles (ID)
---------------------------------------------------------------------------
aQute.bnd.annotation.component           | 1.43.1  | 205 2                 
aQute.bnd.service.action                 | 1.43.1  | 205 2                 
javax.activation                         | 1.1.0   | 0 178                 
org.apache.commons.logging               | 1.0.4   | 7 186                 
org.apache.felix.gogo.api                | 0.10.0  | 37 52                 
org.apache.felix.service.command         | 0.10.0  | 37 52                 
org.apache.felix.service.threadio        | 0.10.0  | 37 52                 
*
org.apache.http.impl                     | 0.0.0   | 253 174               
org.apache.http                          | 0.0.0   | 253 174  
 *            
org.apache.karaf.jaas.boot.principal     | 3.0.1   | 0 40                  
org.apache.karaf.jaas.boot               | 3.0.1   | 0 40                  
org.apache.karaf.region.persist          | 3.0.1   | 65 23                 
org.apache                               | 0.0.0   | 253 174 168           
org.fusesource.jansi                     | 1.11.0  | 28 26                 
org.opendaylight.yangtools.objcache.impl | 0.7.0   | 73 72                 
org.ops4j.pax.url.commons.handler        | 0.0.0   | 202 32                
org.ops4j.pax.web.service                | 3.1.0   | 191 193               
org.osgi.framework.hooks.bundle          | 1.1.0   | 117 0                 
org.osgi.framework.hooks.resolver        | 1.0.0   | 117 0                 
org.osgi.framework.hooks.service         | 1.1.0   | 117 0                 
org.osgi.framework.hooks.weaving         | 1.0.0   | 117 0                 
org.osgi.framework.launch                | 1.1.0   | 117 0                 
org.osgi.framework.namespace             | 1.0.0   | 117 0                 
org.osgi.framework.startlevel            | 1.0.0   | 117 0                 
org.osgi.framework.wiring                | 1.1.0   | 117 0                 
org.osgi.framework                       | 1.7.0   | 117 0                 
org.osgi.resource                        | 1.0.0   | 117 2 0               
org.osgi.service.condpermadmin           | 1.1.1   | 117 0                 
org.osgi.service.log                     | 1.3.0   | 7 0                   
org.osgi.service.packageadmin            | 1.2.0   | 117 0                 
org.osgi.service.permissionadmin         | 1.2.0   | 117 0                 
org.osgi.service.startlevel              | 1.1.0   | 117 0                 
org.osgi.service.url                     | 1.0.0   | 117 0                 
org.osgi.util.tracker                    | 1.5.1   | 117 0                 
org                                      | 0.0.0   | 218 253 231 174 168   
opendaylight-user@root>bundle:headers 253

wrap_mvn_org.apache.httpcomponents_httpcore (253)
-------------------------------------------------
Specification-Title = HttpComponents Apache HttpCore
Archiver-Version = Plexus Archiver
Tool = Bnd-2.2.0.20130927-173417
Specification-Version = 4.4
Specification-Vendor = The Apache Software Foundation
Implementation-Version = 4.4
Build-Jdk = 1.7.0_60
Generated-By-Ops4j-Pax-From = wrap:mvn:org.apache.httpcomponents/httpcore
Implementation-Vendor-Id = org.apache
url = http://hc.apache.org/httpcomponents-core-ga
Created-By = 1.7.0_71 (Oracle Corporation)
Implementation-Title = HttpComponents Apache HttpCore
Manifest-Version = 1.0
Implementation-Build = tags/4.4-RC1/httpcore@r1645448; 2014-12-14
13:29:59+0100
Bnd-LastModified = 1424809638066
X-Compile-Target-JDK = 1.6
Originally-Created-By = Apache Maven 3.0.5
Built-By = oleg
X-Compile-Source-JDK = 1.6
Implementation-Vendor = The Apache Software Foundation

Bundle-Name = wrap_mvn_org.apache.httpcomponents_httpcore
Bundle-SymbolicName = wrap_mvn_org.apache.httpcomponents_httpcore
Bundle-Version = 0
Bundle-ManifestVersion = 2

Import-Package = 
        javax.net;resolution:=optional,
        javax.net.ssl;resolution:=optional
Export-Package = 

org.apache.http;uses:="org.apache.http.params,org.apache.http.protocol,org.apache.http.util",
        org.apache.http.annotation,
        org.apache.http.concurrent,
        org.apache.http.config,
        org.apache.http.entity;uses:=org.apache.http,

org.apache.http.impl;uses:="org.apache.http,org.apache.http.config,org.apache.http.entity,org.apache.http.impl.entity,org.apache.http.io,org.apache.http.params,org.apache.http.protocol",

org.apache.http.impl.bootstrap;uses:="javax.net,javax.net.ssl,org.apache.http,org.apache.http.config,org.apache.http.impl,org.apache.http.protocol",

org.apache.http.impl.entity;uses:="org.apache.http,org.apache.http.entity,org.apache.http.io",

org.apache.http.impl.io;uses:="org.apache.http,org.apache.http.config,org.apache.http.io,org.apache.http.message,org.apache.http.params,org.apache.http.util",

org.apache.http.impl.pool;uses:="javax.net,javax.net.ssl,org.apache.http,org.apache.http.config,org.apache.http.params,org.apache.http.pool",

org.apache.http.io;uses:="org.apache.http,org.apache.http.config,org.apache.http.util",

org.apache.http.message;uses:="org.apache.http,org.apache.http.params,org.apache.http.util",
        org.apache.http.params;uses:="org.apache.http,org.apache.http.config",
        org.apache.http.pool;uses:=org.apache.http.concurrent,
        org.apache.http.protocol;uses:="org.apache.http,org.apache.http.params",
        org.apache.http.ssl;uses:=javax.net.ssl,
        org.apache.http.util;uses:=org.apache.http,
        org,
        org.apache


opendaylight-user@root>bundle:headers 174

wrap_mvn_org.apache.httpcomponents_httpclient_4.2.5 (174)
---------------------------------------------------------
Specification-Title = HttpComponents HttpClient
Archiver-Version = Plexus Archiver
Tool = Bnd-2.2.0.20130927-173417
Specification-Version = 4.2.5
Specification-Vendor = The Apache Software Foundation
Implementation-Version = 4.2.5
Build-Jdk = 1.5.0_22
Generated-By-Ops4j-Pax-From =
wrap:mvn:org.apache.httpcomponents/httpclient/4.2.5
Implementation-Vendor-Id = org.apache
url = http://hc.apache.org/httpcomponents-client
Created-By = 1.7.0_71 (Oracle Corporation)
Implementation-Title = HttpComponents HttpClient
Manifest-Version = 1.0
Implementation-Build = tags/4.2.5/httpclient@r1469939; 2013-04-19
18:29:05+0200
Bnd-LastModified = 1424809124976
X-Compile-Target-JDK = 1.5
Originally-Created-By = Apache Maven
Built-By = oleg
X-Compile-Source-JDK = 1.5
Implementation-Vendor = The Apache Software Foundation

Bundle-Name = wrap_mvn_org.apache.httpcomponents_httpclient_4.2.5
Bundle-SymbolicName = wrap_mvn_org.apache.httpcomponents_httpclient_4.2.5
Bundle-Version = 0
Bundle-ManifestVersion = 2

Import-Package = 
        javax.crypto;resolution:=optional,
        javax.crypto.spec;resolution:=optional,
        javax.net;resolution:=optional,
        javax.net.ssl;resolution:=optional,
        javax.security.auth.x500;resolution:=optional,
        org.apache.commons.codec.binary;resolution:=optional,
        org.apache.commons.logging;resolution:=optional,
        org.apache.http;resolution:=optional,
        org.apache.http.entity;resolution:=optional,
        org.apache.http.impl;resolution:=optional,
        org.apache.http.impl.io;resolution:=optional,
        org.apache.http.io;resolution:=optional,
        org.apache.http.message;resolution:=optional,
        org.apache.http.params;resolution:=optional,
        org.apache.http.pool;resolution:=optional,
        org.apache.http.protocol;resolution:=optional,
        org.apache.http.util;resolution:=optional,
        org.ietf.jgss;resolution:=optional
Export-Package = 

org.apache.http.auth;uses:="org.apache.http,org.apache.http.params,org.apache.http.protocol",
        org.apache.http.auth.params;uses:=org.apache.http.params,
        org.apache.http.client;
                uses:="org.apache.http,
                        org.apache.http.auth,
                        org.apache.http.client.methods,
                        org.apache.http.conn,
                        org.apache.http.conn.routing,
                        org.apache.http.cookie,
                        org.apache.http.params,
                        org.apache.http.protocol",

org.apache.http.client.entity;uses:="org.apache.http,org.apache.http.entity",

org.apache.http.client.methods;uses:="org.apache.http,org.apache.http.conn,org.apache.http.message",

org.apache.http.client.params;uses:="org.apache.http,org.apache.http.auth.params,org.apache.http.conn.params,org.apache.http.cookie.params,org.apache.http.params",

org.apache.http.client.protocol;uses:="org.apache.http,org.apache.http.auth,org.apache.http.client,org.apache.http.cookie,org.apache.http.protocol",

org.apache.http.client.utils;uses:="org.apache.http,org.apache.http.client",

org.apache.http.conn;uses:="javax.net.ssl,org.apache.http,org.apache.http.conn.routing,org.apache.http.conn.scheme,org.apache.http.entity,org.apache.http.params,org.apache.http.protocol",

org.apache.http.conn.params;uses:="org.apache.http,org.apache.http.conn.routing,org.apache.http.params",

org.apache.http.conn.routing;uses:="org.apache.http,org.apache.http.protocol",

org.apache.http.conn.scheme;uses:="org.apache.http,org.apache.http.conn,org.apache.http.params",

org.apache.http.conn.ssl;uses:="javax.net.ssl,org.apache.http.conn,org.apache.http.conn.scheme,org.apache.http.params",
        org.apache.http.conn.util,
        org.apache.http.cookie;uses:="org.apache.http,org.apache.http.params",
        org.apache.http.cookie.params;uses:=org.apache.http.params,

org.apache.http.impl.auth;uses:="org.apache.http,org.apache.http.auth,org.apache.http.params,org.apache.http.protocol,org.apache.http.util,org.ietf.jgss",
        org.apache.http.impl.client;
                uses:="org.apache.commons.logging,
                        org.apache.http,
                        org.apache.http.auth,
                        org.apache.http.client,
                        org.apache.http.client.methods,
                        org.apache.http.conn,
                        org.apache.http.conn.routing,
                        org.apache.http.cookie,
                        org.apache.http.message,
                        org.apache.http.params,
                        org.apache.http.pool,
                        org.apache.http.protocol",
        org.apache.http.impl.conn;
                uses:="javax.net.ssl,
                        org.apache.commons.logging,
                        org.apache.http,
                        org.apache.http.conn,
                        org.apache.http.conn.routing,
                        org.apache.http.conn.scheme,
                        org.apache.http.impl,
                        org.apache.http.impl.io,
                        org.apache.http.io,
                        org.apache.http.message,
                        org.apache.http.params,
                        org.apache.http.pool,
                        org.apache.http.protocol,
                        org.apache.http.util",
        org.apache.http.impl.conn.tsccm;
                uses:="org.apache.http.conn,
                        org.apache.http.conn.params,
                        org.apache.http.conn.routing,
                        org.apache.http.conn.scheme,
                        org.apache.http.impl.conn,
                        org.apache.http.params",

org.apache.http.impl.cookie;uses:="org.apache.http,org.apache.http.cookie,org.apache.http.message,org.apache.http.params,org.apache.http.util",
        org,
        org.apache.http,
        org.apache,
        org.apache.http.impl


opendaylight-user@root>




--
View this message in context: 
http://apache-felix.18485.x6.nabble.com/how-to-get-dependency-chain-in-Apache-Karaf-tp5011631.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to