ClassLoader Madness [message #86020] |
Wed, 04 April 2007 02:29 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: dkrebs.tibco.com
Hi,
Really hoping someone can help me, long story short I have a bundle that
wraps apache axis and under JRE1.4 everything worked fine. However I've
since upgraded to JRE1.5 which happens to include
javax.xml.namespace.Qname that is causing a java.lang.LinkageError when
trying to call a webservice in a plugin. After researching I realized the
issue is because axis also has an implementation of the same class but
when instantiated from a client plugin its getting loaded from the JRE.
OSGI and ClassLoading is a sore spot for me but what I think needs to
happen is to somehow say "in this plugin that is creating a webservice
call, whenever it instantiates a new Qname class use the class provided in
the axis plugin and not the one in the JRE" Atleast I think that is what
needs to happen. Can anyone offer some suggestions? - Duncan
|
|
|
|
Re: ClassLoader Madness [message #86631 is a reply to message #86337] |
Thu, 12 April 2007 22:54 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: dkrebs.tibco.com
Bill Kayser wrote:
> You must be talking about a bundle that depends on the axis bundle. In
> order to get it to pull in the jaxrpc classs, wouldn't it be sufficient
> for the axis bundle to export the javax.xml.namespace package? Maybe
> you add a version tag to it so it supersedes the jre's version? I've
> never tried that.
Bill, a couple of good things have happened over the last few days, one I
just got my scuba certification in Belize and saw some great things
including a couple of sharks, and secondly (more importantly) I followed
your lead and added a version tag to the package so that it now loads the
right class. Thanks so much, this one would have taken me a long time. -
Duncan
|
|
|
Powered by
FUDForum. Page generated in 0.03407 seconds