At a guess:
getBundle().getClass().getClassLoader()
is returning the classloader for the Bundle object, which being a
framework class would be the system classloader, which in your case is
the JNLP classloader.
I'd suggest modifying your code to look for a specific class inside your
bundle to see the actual classloader for classes within the bundle.
-- Rob
Angel Electrico wrote:
My first post was about finding some troubles with duplicated dependencies
when programatically installing several bundles.
http://www.nabble.com/BundleContext.installBundle-won%27t-install-more-than-2-bundles.-td25280408.html
I removed the duplicated dependencies and all my bundles started ok... but
know I realize that the issue is that all my bundles are starting with the
same classloader.
The output from my pluggins shows the same classloader over and over
again...
Installer code
if (s_log.isDebugEnabled()) s_log.debug("(" +
Thread.currentThread().getContextClassLoader() + ") Starting Pluggins: " +
extensiones);
if (s_log.isDebugEnabled()) s_log.debug("Install: " + url + " (" +
bundle.getSymbolicName() + "). " + bundle.getClass().getClassLoader());
if (s_log.isDebugEnabled()) s_log.debug("(" +
Thread.currentThread().getContextClassLoader() + ") Starting " +
bundleInstalado.getBundle().getSymbolicName() + " loader " +
bundleInstalado.getBundle().getClass().getClassLoader());
Pluggin Code
if (s_log.isDebugEnabled()) s_log.debug("Loader: " +
Thread.currentThread().getContextClassLoader());
if (s_log.isDebugEnabled()) s_log.debug("JTattoo says hi");
(Classloader 1.0) Starting pluggins
Install:
file:/C:/Users/Psique/.PsiqueWareOrquideaSimpodial/girasolEditor1252248327408/jtattoo-pluggin.jar
(JTattooPluggin). com.sun.jnlp.jnlpclassloa...@a6aeed
(Classloader 1.0) Starting JTattooPluggin loader
com.sun.jnlp.jnlpclassloa...@a6aeed
Loader: 1.0
JTattoo says hi
Install:
file:/C:/Users/Psique/.PsiqueWareOrquideaSimpodial/girasolEditor1252248327408/wordpress-pluggin.jar
(WordPressPluggin). com.sun.jnlp.jnlpclassloa...@a6aeed
(Classloader 1.0) Starting WordPressPluggin loader
com.sun.jnlp.jnlpclassloa...@a6aeed
Loader: 1.0
WordPress says hi
Install:
file:/C:/Users/Psique/.PsiqueWareOrquideaSimpodial/girasolEditor1252248327408/napkin-pluggin.jar
(NapkinPluggin). com.sun.jnlp.jnlpclassloa...@a6aeed
(Classloader 1.0) Starting NapkinPluggin loader
com.sun.jnlp.jnlpclassloa...@a6aeed
Loader: 1.0
Napkin says hi
Does anyone has any idea on why is this happening or how can I fix it o at
least have better diagnostics on it :-/.
Thank you very much :-D
--
Ascert - Taking systems to the Edge
r...@ascert.com
+44 (0)20 7488 3470
www.ascert.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org