I'm trying out the Fuse osgi container and I've stumbled upon a rather tricky issue.
The application is based on Spring MVC and Hibernate, and for both of them the configuration is annotation based and discovered at runtime by means of package scanning (i.e. the <context:component-scan> tag in Spring and the packages-to-scan directive in Hibernate).
This however fails with an exception like this one:
FileNotFoundException: URL bundle://356.0:1/<packagename>/ cannot be resolved to absolute file path because it does not reside in the file system
Apparently the class loader is unable to make use of bundle: urls to retrieve classes.
Is there any workaround for this? Maybe configuring somehow the Jetty web server in such a way that WAR files are unpacked when deployed?