Closed ondrejtomcik closed 7 years ago
Which library are you using for authorization? It would be very helpful if you could attach a gist containing the filter configuration.
I had no problems registering a ContainerRequestFilter
from a different archive. I tried both approaches: by configuring the web.xml deployment descriptor and by adding the filters in the code.
Please refer this gist to see how to do it.
Let us know if this solves your issue.
I've tried this by myself as well and it seems to work as expected.
Please keep in mind that annotation scanning for JAX-RS resources (like filters or interceptors) only works for the main module. If you have any of those in a different module, you must add them manually. Either through web.xml
or through the methods within the Application
or ResourceConfig
class.
Again please refer to the example in @osbeorn 's gist. It should work.
I'll be closing this, if you have a more specific example that is not working, please do share it either here and I'll reopen or post it in a new issue.
Hello. I started to use KumuluzEE and I need to use couple of
ContainerRequestFilters
in my jax-rs application. Those filters which are in project are loaded and invoked. I have one jar archive for authorization which contains anotherContainerRequestFilter
which is not loaded at all.I tried to create
web.xml
withjersey.config.server.provider.packages
but without any success. How to load this ContainerRequestFilter from different archive please?Thakns