Forum Home » Fuse Distributions » Fuse Services Framework

Thread: Deploying Spring/Hibernate WAR application with package scanning

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 0

Posts: 1
Registered: 05/03/12
Deploying Spring/Hibernate WAR application with package scanning
Posted: May 3, 2012 2:24 PM
  Click to reply to this thread Reply
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?

Thanks for any help.