camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: camel 2.10 & Spring 3.0.7 issue on Karaf 2.3.0
Date Thu, 10 Jan 2013 12:16:32 GMT
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 <ch007m@gmail.com> 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: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message