Hi All, @Łukasz I will take a look at eclipse Gemini,
@Christian, I create it with maven and the Maven Bundle plugin, I thought to add the range manually but in fact I add the spring XML files (to META-INF/spring/* folder) and I have no other import of spring in java files, as a result the generated bundle has no Package-Import of spring at all (even checking at runtime with the command headers). The problem I am getting (and I think it is due the version mismatch) is that I have a bean which uses org.springframework.beans.factory.FactoryBean<T> and it don't work on servicemix (it works on Junit tests). The only difference I've found by now, is that in Junit tests, the bean is created with Spring 4 classes, in servicemix it is created from: <dependency> <groupId>org.apache.servicemix.bundles</groupId> <artifactId>org.apache.servicemix.bundles.spring-beans</artifactId> <version>3.2.14.RELEASE_1</version> </dependency> Il giorno gio 3 mar 2016 alle ore 19:39 Christian Schneider < [email protected]> ha scritto: > How do you create your bundle? > You should import the spring packages with a version range of e.g. [4.2,5). > > Christian > > On 03.03.2016 16:35, Cristiano Costantini wrote: > > Hello all, > > I'm testing Servicemix 7.0.0.M1, > > it starts with spring 3.2.14.RELEASE_1 installed. > > > > I can install spring 4 with the command: > > feature:install spring/4.2.3.RELEASE_1 > > > > and I have both spring version installed, but when I install a bundle > with > > some beans configuration, Servicemix/Karaf uses Spring 3 to start it (and > > it give me errors) > > > > How can I force my bundle to be deployed by spring 4 ? > > What bit of information am I missing? > > > > Thank you! > > Cristiano > > > > > -- > Christian Schneider > http://www.liquid-reality.de > > Open Source Architect > http://www.talend.com > >
