Using /WEB-INF/web.xml for finding out the root servlet path instead of just /WEB-INF as the bundle protocol in OSGi has problems with accessing directories. Hopefully it doesn't affect existing code.