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.