7 Replies Latest reply on May 18, 2011 11:11 AM by Jing Yang

    how to build camel-cxf consumer  with osgi

    Jing Yang Newbie

      I try to build a camel-cxf consumer  with archetype osgi-cxf-wsdl-first.

       

      beans.xml is slightly modified as

       

       

       

      The exception is occurred during the bundle is installed in 4.3.0-fuse  as below

       

      15:17:11,844 | ERROR | ExtenderThread-5 | ContextLoaderListener            | BundleApplicationContextListener   50 | 76 - org.springframework.osgi.extender - 1.2.0 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=wsdl-first, config=osgibundle:/META-INF/spring/*.xml))

      org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace http://camel.apache.org/schema/cxf

      Offending resource: URL bundleentry://182.fwk13446707/META-INF/spring/beans.xml

       

           at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:284)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1332)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[63:org.springframework.beans:3.0.3.RELEASE]

           at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)[75:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)[75:org.springframework.osgi.core:1.2.0]

           at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[65:org.springframework.context:3.0.3.RELEASE]

           at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[65:org.springframework.context:3.0.3.RELEASE]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[75:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[75:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[75:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[75:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)[76:org.springframework.osgi.extender:1.2.0]

           at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)[76:org.springframework.osgi.extender:1.2.0]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[75:org.springframework.osgi.core:1.2.0]

           at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)[76:org.springframework.osgi.extender:1.2.0]

           at java.lang.Thread.run(Thread.java:662)[:1.6.0_22]

       

      Thanks,

      -Jing