Skip to main content



      Home
Home » Eclipse Projects » Equinox » EclipseClassLoader vs xmlBlaster
EclipseClassLoader vs xmlBlaster [message #58878] Mon, 30 January 2006 08:58 Go to next message
Eclipse UserFriend
Originally posted by: yavin.gmx.com

Hey uses someone a xmlBlaster Client as OSGi bundle?

My problem is that xmlBlaster creates its own class loader and tries to
get the classpaths form the classloader which loaded the factory. I'm
afraid they expect a URLClassloader but its the EclipseClassloader and I
get a ClassCastException.

Tips and tricks are welcome!
Re: EclipseClassLoader vs xmlBlaster [message #59003 is a reply to message #58878] Tue, 31 January 2006 09:43 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_nospam_mcaffer.ca.ibm.com

No knowledge of xmlBlaster but we have seen similar situations. For
example, the Ant code needs to get a classpath for the Ant classloader.
Depending on the actual shape you want, you can construct a classloader
wrapper (extends Classloader) that answers all the right questions by
forwarding to the relevant methods on Bundle (Bundle.loadClass, ...).

Jeff

"Kai" <yavin@gmx.com> wrote in message
news:drl62c$30k$1@utils.eclipse.org...
> Hey uses someone a xmlBlaster Client as OSGi bundle?
>
> My problem is that xmlBlaster creates its own class loader and tries to
> get the classpaths form the classloader which loaded the factory. I'm
> afraid they expect a URLClassloader but its the EclipseClassloader and I
> get a ClassCastException.
>
> Tips and tricks are welcome!
Previous Topic:Equinox 3.2 based Application
Next Topic:ClassNotFoundException in spite of working exports/imports?
Goto Forum:
  


Current Time: Mon May 12 09:19:34 EDT 2025

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

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

Back to the top