Spring dependencies in bundle?
Which classes are visible to beans that are instantiated by the Spring extender when it creates the Spring context of a Spring-DM powered bundle? Are these only the classes that are visible to this bundle?
Do I need to import Spring-classes in my bundle manifest?
I ask this because I am having the following problem when I try to use a PropertyPlaceholderConfigurer inside my Spring context. I did not create the manifest such that it imports Spring classes. I (obviously from the stack trace!) do have the bundle org.sprinframework.beans activated but it looks like it cannot load classes from itself:
Code:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] for bean with name 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0' defined in URL [bundleentry://271.fwk30758157/META-INF/spring/client/productDaoClient.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.beans.factory.config.PropertyPlaceholderConfigurer not found from bundle [nl.hm.oblomow.model.products]
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1208)
.......