Debugging class loading issues [message #1015462] |
Thu, 28 February 2013 11:09  |
Eclipse User |
|
|
|
I am a beginner with OSGI, and despite reading dozens of articles & posts on the subject I am still struggling to come up with a consistent approach to troubleshooting classloading issues is Virgo.
Basically I have a WAB bundle W in a plan that deploys fine, then fails at runtime with a ClassNotFoundException.
W depends on bundle A which depends on B
clhas / clexport show that the class is available, and clload reports that both W and B can successfully load the class.
The exception is:
[2013-02-28 16:49:32.494] ERROR http-bio-8080-exec-7 o.a.c.c.C.[.[localhost].[/mc].[My Web Application] Servlet.service() for servlet [My Web Application] in context with path [/mc] threw exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: org.apache.http.conn.ClientConnectionManager
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:135)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
I am at a complete loss as to where to go from there... presumably some bundle should be importing org.apache.http.conn but how do I find out which??
Also, I have tried to enable classloading debugging in equinox by adding this line to configuration/config.ini:
osgi.debug=file\:equinox-debug.properties
... where the properties file starts with
# Turn on general debugging for org.eclipse.osgi
org.eclipse.osgi/debug=true
# Prints out class loading debug information
org.eclipse.osgi/debug/loader=true
Any pointers would be greatly appreciated,
Thanks!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03218 seconds