Classloading problem [message #131970] |
Thu, 28 May 2009 16:39 |
Eclipse User |
|
|
|
Originally posted by: Daniel.Mazurek.NightLabs.de
Hello,
I have the following problem:
I'm using a BIRT runtime in an JBossAS. Inside this JBossAS we have
Mozilla Rhino (v1.7) deployed and need it in this special version.
Inside the Birt runtime there is also a Mozilla Rhino (v1.6) contained.
Because some classes which are deployed in the JBossAS are needed by our
reporting implementation we use the osgi.parentClassloader=fwk option,
so that the (BIRT-)OSGI runtime can load our (deployed) classes.
The problem now is that it loads the Rhino (1.7) classes from the
JBossAS deploy, instead of the (1.6) classes delivered with the BIRT
runtime which lead to errors inside BIRT.
Actually reading the documentation I thought that OSGI would delegate to
the parent classlaoder at last after not having found the classes inside
its (BIRT) bundles.
So now I'm wondering why OSGI doesn't find the Mozilla Rhino classes
form the org.motilla.rhino bundle inside the delivered BIRT deployment.
My question is now if there exists an option in OSGI to exclude classes
to be loaded from the framework classloader, similiar to
org.osgi.framework.bootdelegations but the other way round (exclude
instead of include), so that these classes would be tried to be loaded
first by the BundleClassLoader instead of the framework classloader.
Or if somebody has another idea how to solve this problems,
help is very much appreciated.
Best regards
Daniel
|
|
|
|
Powered by
FUDForum. Page generated in 0.02852 seconds