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 >
Is the code generated from a wsdl using a wsdl2java maven tool? And do you have a jaxb.index file in the bundle? The file is located in the same package as the .class files. Do you see any more details in the log? Is there a stacktrace? And the 10000$ question, did it work before? And what have changed? > 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
