2 Replies Latest reply on Jun 13, 2011 2:02 PM by Shamik Bandopadhyay

    Classpath resource issue usiing spring

    Shamik Bandopadhyay Newbie



        I'm new to OSGi and trying to deploy a spring based application in fuse esb. In spring context, I'm referring to a db4o file which is under 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 resources/repo/test.db4o.


      Here's the entry in spring context.




      When I'm starting the bundle, its throwing the following exception:


      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectContainer' defined in URL bundle://255.0:0/META-INF/spring/taxonomydaoimpl-context.xml: Invocation of init method failed; nested exception is java.io.FileNotFoundException: OSGi resource[repo/taxonomy.db4o|bnd.id=255|bnd.sym=taxonomydaoimplbundle] cannot be resolved to absolute file path


      Any pointers will be highly appreciated.