Hi Thomas, you need to set the property osgi.http.whiteboard.context.select to the value "(osgi.http.whiteboard.context.name=org.osgi.service.http)" for the whiteboard services. This should attach them to the default context of the http service.
(The property osgi.http.whiteboard.context.name is not supported for whiteboard services - except when registering a context) Regards Carsten Am 08.06.15 um 16:21 schrieb Thomas Driessen: > Hi Carsten, > > sry for bothering you again, but I still have the same problem as before. > > I checked out the recent code from github, compiled everything, used the > property osgi.http.whiteboard.context.name=org.osgi.service.http, > but still Filters and Servlets registered via the whiteboard mechanism > seem to have another ServletContext than those registered directly via > HttpContext or ExtHttpContext. > Whiteboard-Filter intercept requests to Whiteboard-Servlets but none else. > ExtHttpService-Filter intercept requests to all other Servlets but > Whiteboard-Servlets. > Shouldn't that be changed by using the above mentioned property? I thought > I have to set the property in order to force Whiteboard-registered Filters > / Servlets to use the same ServletContext as those registered directly over > HttpService/ExtHttpService. > > I've created a sample setup for you on > https://github.com/Sandared/filtertestsetup so that you might have a look > on it. > Perhaps I'm missing something. > > Best regards, > Thomas > > 2015-05-27 15:46 GMT+02:00 Thomas Driessen <[email protected]>: > >> Hi Carsten, >> >> thanks a lot for that quick fix :) I'll see if it works in my setup within >> the next days. >> >> Best regards, >> Thomas >> >> >> 2015-05-27 14:53 GMT+02:00 Carsten Ziegeler <[email protected]>: >> >>> I've committed an untested version to svn. If you register a whiteboard >>> service with the select property set to >>> "(osgi.http.whiteboard.context.name=org.osgi.service.http)" this >>> whiteboard service will be registered in the context of the http >>> service, which means a filter will be applied to such servlets. >>> >>> Carsten >>> -- >>> Carsten Ziegeler >>> Adobe Research Switzerland >>> [email protected] >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> >> -- >> M.Sc. Thomas Driessen >> Software Methodologies for Distributed Systems >> Institute of Computer Science >> University of Augsburg >> Universitätsstr. 6a >> 86135 Augsburg, Germany >> >> Tel: +49 821 598-2486 >> email: [email protected] >> > > > -- Carsten Ziegeler Adobe Research Switzerland [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

