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

Reply via email to