Which version of Camel are you using ? Can you check the cxf bundle states ?
On Wed Nov 9 14:15:34 2011, Gnanaguru S wrote:
I am trying to deploy a camel example. facing this issue. ( the bundle was active but failed) 11:43:53,714 | ERROR | xtenderThread-19 | ContextLoaderListener | ? ? | 85 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlAppli cationContext(bundle=camel-example-cxf, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to imp ort bean definitions from URL location [classpath:META-INF/cxf/cxf.xml] Offending resource: URL [bundle://281.0:0/META-INF/spring/CamelCXFProviderRouteConfig.xml]; nested exception i s org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi r esource[classpath:META-INF/cxf/cxf.xml|bnd.id=281|bnd.sym=camel-example-cxf]; nested exception is java.io.File NotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=281|bnd.sym=camel-example-cxf] cannot b e resolved to URL because it does not exist at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.jav a:68)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)[72:org.springf ramework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)[72:org.springf ramework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResou rce(DefaultBeanDefinitionDocumentReader.java:192)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(Defau ltBeanDefinitionDocumentReader.java:147)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(Defa ultBeanDefinitionDocumentReader.java:132)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(D efaultBeanDefinitionDocumentReader.java:93)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefini tionReader.java:493)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefiniti onReader.java:390)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinition Reader.java:334)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinition Reader.java:302)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(Abstract BeanDefinitionReader.java:143)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(Abstract BeanDefinitionReader.java:178)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(Abstract BeanDefinitionReader.java:149)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBu ndleXmlApplicationContext.java:164)[83:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBu ndleXmlApplicationContext.java:136)[83:org.springframework.osgi.core:1.2.1] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(Abstra ctRefreshableApplicationContext.java:130)[70:org.springframework.context:3.0.5.RELEASE] at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractAppli cationContext.java:467)[70:org.springframework.context:3.0.5.RELEASE] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(Ab stractDelegatedExecutionApplicationContext.java:69)[83:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(Abstrac tDelegatedExecutionApplicationContext.java:269)[83:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:8 5)[83:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh( AbstractDelegatedExecutionApplicationContext.java:247)[83:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextE xecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[85:org.springframework.osgi.extender:1.2 .1] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextE xecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[85:org.springframework.osgi.extender:1.2. 1] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(Abstr actDelegatedExecutionApplicationContext.java:175)[83:org.springframework.osgi.core:1.2.1] at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListe ner.java:716)[85:org.springframework.osgi.extender:1.2.1] at java.lang.Thread.run(Thread.java:619)[:1.6.0_17] Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document fr om OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=281|bnd.sym=camel-example-cxf]; nested exception is jav a.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=281|bnd.sym=camel-example-cxf] cannot be resolved to URL because it does not exist at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinition Reader.java:341)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinition Reader.java:302)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(Abstract BeanDefinitionReader.java:143)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(Abstract BeanDefinitionReader.java:178)[72:org.springframework.beans:3.0.5.RELEASE] at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResou rce(DefaultBeanDefinitionDocumentReader.java:186)[72:org.springframework.beans:3.0.5.RELEASE] ... 23 more Caused by: java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=281|bnd.sym=came l-example-cxf] cannot be resolved to URL because it does not exist at org.springframework.osgi.io.OsgiBundleResource.getURL(OsgiBundleResource.java:228)[84:org.springfra mework.osgi.io:1.2.1] at org.springframework.osgi.io.OsgiBundleResource.getInputStream(OsgiBundleResource.java:180)[84:org.s pringframework.osgi.io:1.2.1] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinition Reader.java:328)[72:org.springframework.beans:3.0.5.RELEASE] ... 27 more Help out Regards Guru -- View this message in context: http://camel.465427.n5.nabble.com/META-INF-cxf-tp4974554p4976837.html Sent from the Camel - Users mailing list archive at Nabble.com.
-- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang