AEM 6.3 OSGi HTTP Whiteboard Filter not registering
I am trying to get a filter to fire before the authentication service fires, it looks like the HTTP whiteboard is the way to go.
I've been following instructions here https://helpx.adobe.com/experience-manager/kt/platform-repository/using/osgi-http-whiteboard-code-sample-develop.html and here https://github.com/Adobe-Consulting-Services/acs-aem-samples/blob/master/bundle/src/main/java/com/adobe/acs/samples/filters/impl/SampleServletFilter.java.
i see the init and activate methods firing when I install my code but the doFilter method never fires. If I go to http://localhost:4502/system/console/httpwhiteboard I see theres nothing under registered filter service (not sure if this is expected or not)
My annotations on the class look like this:
@Component
@Properties({
@Property(name = HttpWhiteboardConstants.HTTP_WHITEBOARD_FILTER_REGEX,
value = { "/*"}),
@Property( name = HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_SELECT,
value = ("(" + HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_NAME + "=org.osgi.service.http)"
)
)
})
@Service
-------
Any thoughts? Ideas?