I'm currently developing an application which should handle plugins.
Everything works fine except one plugin, which makes use of the osgi'd
version of httpclient.
I google'd alot and didn't found something useful that tells me how to
fix this.
i also posted this on
http://www.coderanch.com/t/555730/oa/osgi-felix-NoClassDefFoundError-org-apache#2521416
but i'm pretty sure that no one there can help me with that specific topic:
--
Welcome to Apache Felix Gogo
g!
Standard Gui (Browser) registered.
Standard Gui (Player) registered.
Standard Plugin Registry registered.
Exception in thread "Thread-6" java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
at
org.apache.http.impl.client.AbstractHttpClient.<init>(AbstractHttpClient.java:182)
at
org.apache.http.impl.client.DefaultHttpClient.<init>(DefaultHttpClient.java:150)
at soundi.gplugin.GClient.<init>(GClient.java:123)
at soundi.gplugin.GClient.getInstance(GClient.java:135)
at soundi.gplugin.Gsh$1.run(Gsh.java:54)
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.LogFactory not found by
org.apache.httpcomponents.httpclient [9]
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
g! lb
ID|State |Level|Name
0|Active | 0|System Bundle (4.0.0)
1|Active | 1|Apache Commons Logging (1.1.1)
--
i used the springsource commons logging jar which is osgi'd, it also
exports the org.apache.commons.logging.LogFactory in its Manifest:
Export-Package:
org.apache.commons.logging;version="1.1.1",org.apache.commons.logging.impl;version="1.1.1"...
and i tried it with pax logging. When i use pax logging and include it
as dependency in my main bundle (which starts everything) in netbeans i
can debug the whole osgi project and the plugin works.
i then get a lot of debugging output whats currently going on
(connection information including http content).
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]