I need to understand how this works fully in order to trouble shoot issues I
am having.

I think I have a handle on how osgi provides modularity by limiting
visibility of types via classloaders. I am just not sure how that works with
something like weblogic container especially in some situations

Let say I have the following situation:

1. sling deployed in a war

2. class B taglib class that is a subclass of A, class B is loaded by
applicating level classloader C1

3. class A loaded by osgi bundles classloader C2 (eg javax classes for jsp
scripting)

B cannot be cast to A since they are not really related typewise as they are
loaded by different classloaders...

how is this supposed to be handled  ?
If I jave a class A that is provided by the environment classloader and also
a bundle, but a subclass of that class B needs to come from the
enviroment...

I am having trouble loading custom taglib classes through application
classloader, when the jsp stuff is loaded by a bundle... does the taglib
HAVE to be made into a bundle ?

If I specify boot delegation for classA (in my case the jsp javax classes)
would that work ? I am getting tired of trying combinations I need to think
of a more reasonable approach.

Thanks
Tim

Reply via email to