Thanks. My filter is now registered and is invoked. In my doFilter(), the following line throws an exception
// get sling request SlingHttpServletRequest request = (SlingHttpServletRequest) servletRequest; The error message I am getting is: ClassCastException: Cannot convert org.apache.felix.http.base.internal.dispatch.FilterPipeline$RequestWrapper to SlingHttpServletRequest. My question is, how I do get hold of the SlingHttpServletRequest in my filter?