The current whiteboard implementation does not handle service registrations for resource definitions correctly. According to Enterprise R6 Specification 140.6 (Registering Resources) the service property "osgi.http.whiteboard.resource.pattern" allows to define certain patterns:
"/path/*" – for path mapping,
"*. – for extension mapping,
"" – for context root,
"/" – for default servlet,
any other string – for exact mapping.
Registering a mapping to a folder, e.g. /www, inside of the bundle that holds resources should use the first pattern, e.g. "/assets/*". But the current implementation requires to use "/assets" as pattern.
cause of this, the resource pattern is currently used as the alias name mapping.
alias and name params are a bit confusing... with I did some changes, maybe I broke something?
... I doubt that, this ticket is older then PAXWEB-1114, but I agree, alias and name are confusing.
It worked with the initial Whiteboard extending mechanism for Pax Web, but since we now have a OSGi std. for the Whiteboard extender, the old world, doesn't really work as well.