Claus, I'm using Fuse ESB 7 and create a container using Fabric -->
FuseESB:karaf@fuse-aviva> info Karaf Karaf version 2.3.0.fuse-71-047 Karaf home /Users/chmoulli/Fuse/servers/fuse-esb-7.1.0.fuse-047 Karaf base /Users/chmoulli/Fuse/servers/fuse-esb-7.1.0.fuse-047 OSGi Framework org.apache.felix.framework - 4.0.3.fuse-71-047 [ 234] [Active ] [Created ] [ ] [ 60] camel-blueprint (2.10.0.fuse-71-047) [ 240] [Active ] [ ] [ ] [ 60] camel-core (2.10.0.fuse-71-047) [ 243] [Active ] [ ] [ ] [ 60] camel-spring (2.10.0.fuse-71-047) [ 247] [Active ] [Created ] [ ] [ 60] camel-karaf-commands (2.10.0.fuse-71-047) [ 286] [Active ] [Created ] [ ] [ 60] camel-cxf (2.10.0.fuse-71-047) [ 242] [Active ] [ ] [ ] [ 60] Spring Context (3.0.7.RELEASE) [ 245] [Active ] [ ] [ ] [ 60] spring-osgi-core (1.2.1) [ 246] [Active ] [ ] [ ] [ 60] spring-osgi-io (1.2.1) So if camel 2.10 does not work fine with karaf 2.3. Why have we package like that ? Regards, Charles On Thu, Jan 10, 2013 at 1:16 PM, Claus Ibsen <[email protected]> wrote: > Hi > > You would need Camel 2.11 to run on Karaf 2.3.x. > > Camel 2.10 does not support it to well. As its tied to Aries 0.3, and OSGi > 4.2. > Where as Karaf is Aries 1.0, and OSGi 4.3 etc. > > > > On Thu, Jan 10, 2013 at 1:13 PM, Charles Moulliard <[email protected]> > wrote: > > Hi, > > > > When I deploy a camel project as a bundle on Karaf 2.3.0, Spring > generates > > the following error that I don't really understand as classes are well > > packaged in the bundle > > > > 2013-01-10 13:04:26,204 | ERROR | ExtenderThread-2 | > ContextLoaderListener > > | ? ? | 235 - > > org.springframework.osgi.extender - 1.2.1 | Application context refresh > > failed > (OsgiBundleXmlApplicationContext(bundle=camel-exercises-webservice, > > config=osgibundle:/META-INF/spring/*.xml)) > > org.springframework.beans.factory.BeanCreationException: Error creating > > bean with name 'enrich' defined in URL > > [bundle://311.0:0/META-INF/spring/CamelContext.xml]: Instantiation of > bean > > failed; nested exception is > > org.springframework.beans.BeanInstantiationException: Could not > instantiate > > bean class [com.fusesource.training.camel.Enrich]: Constructor threw > > exception; nested exception is java.lang.Error: Unresolved compilation > > problems: > > Customer cannot be resolved to a type > > Customer cannot be resolved to a type > > SaveCustomer cannot be resolved to a type > > Customer cannot be resolved to a type > > Customer cannot be resolved to a type > > CustomerType cannot be resolved to a variable > > SaveCustomer cannot be resolved to a type > > SaveCustomer cannot be resolved to a type > > GetAllCustomersResponse cannot be resolved to a type > > GetAllCustomersResponse cannot be resolved to a type > > GetAllCustomersResponse cannot be resolved to a type > > > > Code has been compiled usin maven 3.0.2 / JDK 1.6 and server runs using > JDK > > 1.6 > > > > Regards, > > > > -- > > Charles Moulliard > > Apache Committer / Sr. Enterprise Architect (RedHat) > > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > FuseSource is now part of Red Hat > Email: [email protected] > Web: http://fusesource.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > -- Charles Moulliard Apache Committer / Sr. Enterprise Architect (RedHat) Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
