File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes  Spring resource classpath issue in OSGi Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark " Spring resource classpath issue in OSGi" Watch " Spring resource classpath issue in OSGi" New topic

Spring resource classpath issue in OSGi

Shamik Banerjee

Joined: Aug 30, 2004
Posts: 1

I'm trying to deploy a spring based bundle in osgi (fuse esb).In
spring context, I'm referring to a db4o file which is inside resources
folder. As per my understanding, a maven project will make sure that
any file available under resources folder will be available in project
classpath. I've kept the file under

Here's the entry in spring context.

<bean id="objectContainer"
class="org.springmodules.db4o.ObjectContainerFacto ryBean">
<property name="databaseFile"
value="classpath:/repo/test.db4o" />

Once I install and try to start the application, I'm getting the
following exception.

" OSGi
cannot be resolved to absolute file path because it does not reside in
the file system: bundle://258.0:1/repo/test.db4o"

I've tried different combinations, but Felix doesn't seem to recognize
this file. Any pointer will be appreciated.

- Thanks
I agree. Here's the link:
subject: Spring resource classpath issue in OSGi
jQuery in Action, 3rd edition