I am using Jetty in a Felix framework where I register my resources in the
activate method of my bundle be.ugent.usecaserunnables through:
ServiceReference sr =
bundleContext.getServiceReference(HttpService.class.getName());
HttpService service = (HttpService) bundleContext.getService(sr);
service.registerResources("/static","/static",null);
When I launch the bundle with java -jar felix.jar and when I try to visit
servername:8080/static/login.html, I get the following error:
DEBUG: Bundle be.ugent.usecaserunnables [19] static/login.html not found by
be.ugent.usecaserunnables [19], which results in a 404 page not found error.
Nevertheless the static folder is included as private package in the bundle.
What could be causing this?
Kind regards,
Wai How
--
View this message in context:
http://apache-felix.18485.x6.nabble.com/Resources-not-found-tp5012280.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]