Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » ClassLoader Madness
ClassLoader Madness [message #86020] Wed, 04 April 2007 02:29 Go to next message
Eclipse UserFriend
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 #86337 is a reply to message #86020] Thu, 05 April 2007 22:06 Go to previous messageGo to next message
Bill Kayser is currently offline Bill KayserFriend
Messages: 11
Registered: July 2009
Junior Member
Duncan Krebs wrote:
> 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
>

We're using an Axis bundle with JDK 1.5. I notice the Qname class is
in the jaxrpc.jar library.

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.
Re: ClassLoader Madness [message #86631 is a reply to message #86337] Thu, 12 April 2007 22:54 Go to previous message
Eclipse UserFriend
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
Previous Topic:user admin
Next Topic:Can an equninox app be launched in Java Web Start?
Goto Forum:
  


Current Time: Thu Apr 25 08:48:27 GMT 2024

Powered by FUDForum. Page generated in 0.03177 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top