Hi,
I'm fairly new to PAX web, so apologies is this is a stupid question.
I've got a couple of bundles registering various filters/resources/jsps successfully.
I'd like to be able to put sitemesh filter and a spring security filter on the front of all of them at a global level. I'm wanting to do this from some sort of global bundle.
I was able to find this:
https://groups.google.com/g/ops4j/c/iKvj-qu7gS4 which suggests that if I use the shared context I can do that, unfortunately it doesn't work properly. The example itself is fine, but when I try and use more complex filters which require other classes, it doesn't work.
I'm using tomcat.
As far as I can tell the global bundle creates the shared context, and registers its filters. The other bundles grab the shared context reference when it becomes available and attempt to register their own filters. The ResourceDelegatingBundleClassLoader that is being used within tomcat only includes the global bundle, so a ClassNotFound exception is thrown whenever another bundle tries to register a filter.
Am I missing something here or is there a better way of doing this?
I've noticed that in osgi 7.0, section
140.10 this is achievable, but I don't think I can do that with the latest pax web version?
Thanks!