uday ogra created FELIX-6156:
--------------------------------

             Summary: Not able to find class in commons-logging bundle
                 Key: FELIX-6156
                 URL: https://issues.apache.org/jira/browse/FELIX-6156
             Project: Felix
          Issue Type: Bug
            Reporter: uday ogra


I am using commons-jcs-core-2.1 which internally has dependency on 
commons-logging-1.2. In both the jars I have kept export-package as * and 
import-package as *;resolution:=optional in their corresponding Manifest.mf.

When I run the code which uses JCS library I am getting this error:

Caused by: java.lang.ClassNotFoundException: 
org.apache.commons.logging.LogFactory not found by commons-jcs-core [3]
 at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597)
 at 
org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
 at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

 

I am not sure why is LogFactory class not visible to JCS code when 
commons-logging is exporting all the packages.I am starting commons-logging 
bundle first followed by commons-jcs-core. Any idea what am I missing?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to