Hello, We were using fusesource 4.2 SP 1 and have some cxf endpoint that can be deployed into SMX 4.2 SP 1 with no problem. Just switching to fusesource 4.3 which includes camel 2.4 and running into issue deploying into SMX. I think this has to do with schema being used, but don't really know how to resolve issue. All help is appreciated.
-------------Basically have camel-cxf.xml with the endpoint that includes: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:cxf="http://camel.apache.org/schema/cxf" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml"/> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/> ---------Then in our camel-route.xml we have the following: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring" xsi:schemaLocation=" http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd" xmlns:context="http://www.springframework.org/schema/context"> <import resource="classpath:META-INF/spring/camel-cxf.xml"/> ----------------- Build / deploy Build goes through with no problem. However, when deploying into SMX, I get the following: FROM SMX CONSOLE:ka...@root> Exception in thread "SpringOsgiExtenderThread-22" java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java:401) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:287) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:619) FROM servicemix.log FILE: 2010-10-23,18:03:34.589 | INFO | [Karaf Shell Console Thread] | org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator | org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator 67 | 73 - org.springframework.osgi.extender - 1.2.0 | Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [PORTAL - Flow A - flowA-RVRService - OSGi - CXF RVR Service (flowA-RVRService)] 2010-10-23,18:03:34.591 | INFO | [SpringOsgiExtenderThread-22] | org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext | org.springframework.context.support.AbstractApplicationContext 456 | 62 - org.springframework.context - 3.0.3.RELEASE | Refreshing OsgiBundleXmlApplicationContext(bundle=flowA-RVRService, config=osgibundle:/META-INF/spring/*.xml): startup date [Sat Oct 23 18:03:34 GMT 2010]; root of context hierarchy 2010-10-23,18:03:34.591 | INFO | [SpringOsgiExtenderThread-22] | org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext | org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext 359 | 62 - org.springframework.context - 3.0.3.RELEASE | Unpublishing application context OSGi service for bundle PORTAL - Flow A - flowA-RVRService - OSGi - CXF RVR Service (flowA-RVRService) 2010-10-23,18:03:34.596 | INFO | [SpringOsgiExtenderThread-22] | org.springframework.beans.factory.xml.XmlBeanDefinitionReader | org.springframework.beans.factory.xml.XmlBeanDefinitionReader 315 | 60 - org.springframework.beans - 3.0.3.RELEASE | Loading XML bean definitions from URL [bundleentry://236.fwk17652030/META-INF/spring/camel-cxf.xml] 2010-10-23,18:03:35.076 | INFO | [SpringOsgiExtenderThread-22] | org.springframework.beans.factory.xml.XmlBeanDefinitionReader | org.springframework.beans.factory.xml.XmlBeanDefinitionReader 315 | 60 - org.springframework.beans - 3.0.3.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=236|bnd.sym=flowA-RVRService] 2010-10-23,18:03:35.090 | INFO | [SpringOsgiExtenderThread-22] | org.springframework.beans.factory.xml.XmlBeanDefinitionReader | org.springframework.beans.factory.xml.XmlBeanDefinitionReader 315 | 60 - org.springframework.beans - 3.0.3.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/cxf-extension-soap.xml|bnd.id=236|bnd.sym=flowA-RVRService] 2010-10-23,18:03:35.098 | INFO | [SpringOsgiExtenderThread-22] | org.springframework.beans.factory.xml.XmlBeanDefinitionReader | org.springframework.beans.factory.xml.XmlBeanDefinitionReader 315 | 60 - org.springframework.beans - 3.0.3.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/cxf-extension-http-jetty.xml|bnd.id=236|bnd.sym=flowA-RVRService] 2010-10-23,18:03:35.106 | INFO | [SpringOsgiExtenderThread-22] | org.springframework.beans.factory.xml.XmlBeanDefinitionReader | org.springframework.beans.factory.xml.XmlBeanDefinitionReader 315 | 60 - org.springframework.beans - 3.0.3.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/cxf-extension-http.xml|bnd.id=236|bnd.sym=flowA-RVRService] 2010-10-23,18:03:35.116 | ERROR | [SpringOsgiExtenderThread-22] | org.springframework.osgi.extender.internal.activator.ContextLoaderListener | org.springframework.osgi.extender.internal.support.DefaultOsgiBundleApplicationContextListener 50 | 73 - org.springframework.osgi.extender - 1.2.0 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=flowA-RVRService, 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://236.fwk17652030/META-INF/spring/camel-cxf.xml] at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:284)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1332)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[60:org.springframework.beans:3.0.3.RELEASE] at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)[72:org.springframework.osgi.core:1.2.0] at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)[72:org.springframework.osgi.core:1.2.0] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[62:org.springframework.context:3.0.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[62:org.springframework.context:3.0.3.RELEASE] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[72:org.springframework.osgi.core:1.2.0] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[72:org.springframework.osgi.core:1.2.0] at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[72:org.springframework.osgi.core:1.2.0] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[72:org.springframework.osgi.core:1.2.0] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)[73:org.springframework.osgi.extender:1.2.0] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)[73:org.springframework.osgi.extender:1.2.0] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[72:org.springframework.osgi.core:1.2.0] at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)[73:org.springframework.osgi.extender:1.2.0] at java.lang.Thread.run(Thread.java:619)[:1.6.0_18] -- View this message in context: http://camel.465427.n5.nabble.com/camel-2-4-and-cxf-issue-works-in-2-2-tp3233662p3233662.html Sent from the Camel - Users mailing list archive at Nabble.com.
