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!

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ops4j/c781f2e3-4a09-4abd-adb3-944399df94f5n%40googlegroups.com.

Reply via email to