Classloader pollution [message #101893] |
Thu, 22 November 2007 10:09  |
Eclipse User |
|
|
|
I have a problem with osgi.parentClassLoader=boot. As I understand the
option, it should change the parent classloader of OSGi bundles to the
boot classloader, that is, with this option specified on the command line,
I can have JARs in the classpath and in OSGi bundles and they can't see
each other.
For some reason, this doesn't work any its driving me nuts. :-( Here is
how Eclipse runs the tests: C:\prg\jdk-1.5.0\bin\javaw.exe
-DrunLongTests=true -Dosgi.parentClassLoader=boot -classpath
...icu-3.4.5.jar...
In the plugin directory, I have com.ibm.icu_3.4.5.20061213.jar
The JARs are identical but the tests which use them must run in separate
classloaders. This works for the non-OSGi tests. My problem is that the
OSGi tests (which create a report with BIRT) mix both versions which leads
to very strange errors (in my case, the NumberFormatter is broken). How do
I prevent that?
Regards,
--
Aaron Digulla
|
|
|
|
Powered by
FUDForum. Page generated in 0.03159 seconds