Project: talendesb
Issue TESB-8329: Route with cCXF component that acts as service cannot create endpoint
We use several routes that act as proxies using cCXF to offer an endpoint. Those routes fail with errors like this: {panel} 08:23:38,713 | INFO | pool-14-thread-1 | e.camel.impl.DefaultCamelContext 1398 | 175 - org.apache.camel.camel-core - 2.10.2 | Apache Camel 2.10.2 (CamelContext: {color:blue}RouteStandardTestServiceProxy-ctx{color}) is starting 08:23:38,846 | WARN | pool-14-thread-1 | .camel.component.cxf.CxfEndpoint 532 | 180 - org.apache.camel.camel-cxf - 2.10.2 | The endpoint/port name of cxf:///tesb.test.participants.osgi.ufp.provider/soap/ProxyStandardTestServiceProvider/?dataFormat=PAYLOAD&wsdlURL=http%3A%2F%2Fprovider%3A9088%2Fservices%2Ftesb.test.participants.osgi.ufp.provider%2Fsoap%2FStandardTestServiceProvider%2F%3Fwsdl is empty, cxf will try to load the first one in wsdl for you. 08:23:38,847 | WARN | pool-14-thread-1 | .camel.component.cxf.CxfEndpoint 532 | 180 - org.apache.camel.camel-cxf - 2.10.2 | The service name of cxf:///tesb.test.participants.osgi.ufp.provider/soap/ProxyStandardTestServiceProvider/?dataFormat=PAYLOAD&wsdlURL=http%3A%2F%2Fprovider%3A9088%2Fservices%2Ftesb.test.participants.osgi.ufp.provider%2Fsoap%2FStandardTestServiceProvider%2F%3Fwsdl is empty, cxf will try to load the first one in wsdl for you. 08:23:38,903 | INFO | pool-14-thread-1 | pport.AbstractApplicationContext 456 | 108 - org.springframework.context - 3.0.7.RELEASE | Refreshing org.apache.cxf.bus.spring.BusApplicationContext@17d936e4: startup date [Thu Jan 31 08:23:38 CET 2013]; parent: org.springframework.context.support.ClassPathXmlApplicationContext@73fc840d 08:23:38,949 | INFO | pool-14-thread-1 | tory.xml.XmlBeanDefinitionReader 315 | 106 - org.springframework.beans - 3.0.7.RELEASE | Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml] 08:23:38,950 | WARN | pool-14-thread-1 | ache.cxf.common.logging.LogUtils 443 | 119 - org.apache.cxf.cxf-api - 2.7.3.SNAPSHOT | Initial attempt to create application context was unsuccessful. {color:red}org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/cxf/cxf.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/cxf/cxf.xml] cannot be opened because it does not exist{color} org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341) org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.internalLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:154) org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.access$000(ControlledValidationXmlBeanDefinitionReader.java:66) org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader$1.run(ControlledValidationXmlBeanDefinitionReader.java:141) org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader$1.run(ControlledValidationXmlBeanDefinitionReader.java:139) java.security.AccessController.doPrivileged(Native Method)[:1.6.0_37] org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:139) org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:122)[108:org.springframework.context:3.0.7.RELEASE] org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:322)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[108:org.springframework.context:3.0.7.RELEASE] org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[108:org.springframework.context:3.0.7.RELEASE] org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)[108:org.springframework.context:3.0.7.RELEASE] org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:107)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:105)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] java.security.AccessController.doPrivileged(Native Method)[:1.6.0_37] org.apache.cxf.bus.spring.BusApplicationContext.(BusApplicationContext.java:105)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:157)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:148)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:122)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:83)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.camel.component.cxf.CxfEndpointUtils.createBus(CxfEndpointUtils.java:195)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.component.cxf.CxfEndpoint.getBus(CxfEndpoint.java:738)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.component.cxf.CxfEndpoint.setupServerFactoryBean(CxfEndpoint.java:315)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.component.cxf.CxfEndpoint.createServerFactoryBean(CxfEndpoint.java:573)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.component.cxf.CxfConsumer.(CxfConsumer.java:61)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:202)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.RouteService.warmUp(RouteService.java:133)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1981)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1909)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1702)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1583)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1444)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)[177:org.apache.camel.camel-spring:2.10.2] org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1412)[175:org.apache.camel.camel-core:2.10.2] unifiedplatform_530.routestandardtestserviceproxy_0_5.RouteStandardTestServiceProxy$1.doStart(RouteStandardTestServiceProxy.java:141)[252:unifiedplatform_530.RouteStandardTestServiceProxy:0.5.0] org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.main.MainSupport.run(MainSupport.java:141)[175:org.apache.camel.camel-core:2.10.2] unifiedplatform_530.routestandardtestserviceproxy_0_5.RouteStandardTestServiceProxy.run(RouteStandardTestServiceProxy.java:162)[252:unifiedplatform_530.RouteStandardTestServiceProxy:0.5.0] unifiedplatform_530.routestandardtestserviceproxy_0_5.RouteStandardTestServiceProxy.runJobInTOS(RouteStandardTestServiceProxy.java:267)[252:unifiedplatform_530.RouteStandardTestServiceProxy:0.5.0] org.talend.esb.job.controller.internal.RouteAdapter.run(RouteAdapter.java:78)[223:org.talend.esb.job.controller:5.3.0.SNAPSHOT] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_37] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_37] java.lang.Thread.run(Thread.java:680)[:1.6.0_37] Caused by: java.io.FileNotFoundException: class path resource [META-INF/cxf/cxf.xml] cannot be opened because it does not exist org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158) org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)	... 48 more 08:23:38,961 | INFO | pool-14-thread-1 | pport.AbstractApplicationContext 456 | 108 - org.springframework.context - 3.0.7.RELEASE | Refreshing org.apache.cxf.bus.spring.BusApplicationContext@33e592d9: startup date [Thu Jan 31 08:23:38 CET 2013]; parent: org.springframework.context.support.ClassPathXmlApplicationContext@73fc840d 08:23:38,987 | INFO | pool-14-thread-1 | pport.DefaultListableBeanFactory 557 | 106 - org.springframework.beans - 3.0.7.RELEASE | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@43a2dab4: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@427c78c1 08:23:38,990 | INFO | pool-14-thread-1 | al.ServiceLocatorManagerDelegate 128 | 192 - locator - 5.3.0.SNAPSHOT | BundleContext not available, not running in an OSGi environment. 08:23:38,991 | INFO | pool-14-thread-1 | pport.AbstractApplicationContext 456 | 108 - org.springframework.context - 3.0.7.RELEASE | Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1e33c42c: startup date [Thu Jan 31 08:23:38 CET 2013]; root of context hierarchy 08:23:38,992 | INFO | pool-14-thread-1 | tory.xml.XmlBeanDefinitionReader 315 | 106 - org.springframework.beans - 3.0.7.RELEASE | Loading XML bean definitions from class path resource [META-INF/tesb/locator/beansForDelegate.xml] 08:23:38,997 | INFO | pool-14-thread-1 | ort.DefaultSingletonBeanRegistry 422 | 106 - org.springframework.beans - 3.0.7.RELEASE | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@43a2dab4: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@427c78c1 08:23:38,997 | WARN | pool-14-thread-1 | ache.cxf.common.logging.LogUtils 443 | 119 - org.apache.cxf.cxf-api - 2.7.3.SNAPSHOT | Failed to create application context. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in URL [bundleresource://120.fwk115841081/META-INF/cxf/cxf.fixml]: Initialization of bean failed; nested exception is org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.talend.esb.servicelocator.cxf.internal.ServiceLocatorManagerDelegate. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)[106:org.springframework.beans:3.0.7.RELEASE] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)[106:org.springframework.beans:3.0.7.RELEASE] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)[106:org.springframework.beans:3.0.7.RELEASE] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[106:org.springframework.beans:3.0.7.RELEASE] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)[106:org.springframework.beans:3.0.7.RELEASE] org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)[106:org.springframework.beans:3.0.7.RELEASE] org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)[106:org.springframework.beans:3.0.7.RELEASE] org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[108:org.springframework.context:3.0.7.RELEASE] org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)[108:org.springframework.context:3.0.7.RELEASE] org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:107)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:105)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] java.security.AccessController.doPrivileged(Native Method)[:1.6.0_37] org.apache.cxf.bus.spring.BusApplicationContext.(BusApplicationContext.java:105)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.BusApplicationContext.(BusApplicationContext.java:96)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:165)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:148)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:122)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:83)[120:org.apache.cxf.cxf-rt-core:2.7.3.SNAPSHOT] org.apache.camel.component.cxf.CxfEndpointUtils.createBus(CxfEndpointUtils.java:195)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.component.cxf.CxfEndpoint.getBus(CxfEndpoint.java:738)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.component.cxf.CxfEndpoint.setupServerFactoryBean(CxfEndpoint.java:315)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.component.cxf.CxfEndpoint.createServerFactoryBean(CxfEndpoint.java:573)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.component.cxf.CxfConsumer.(CxfConsumer.java:61)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:202)[180:org.apache.camel.camel-cxf:2.10.2] org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.RouteService.warmUp(RouteService.java:133)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1981)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1909)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1702)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1583)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1444)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)[177:org.apache.camel.camel-spring:2.10.2] org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1412)[175:org.apache.camel.camel-core:2.10.2] unifiedplatform_530.routestandardtestserviceproxy_0_5.RouteStandardTestServiceProxy$1.doStart(RouteStandardTestServiceProxy.java:141)[252:unifiedplatform_530.RouteStandardTestServiceProxy:0.5.0] org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[175:org.apache.camel.camel-core:2.10.2] org.apache.camel.main.MainSupport.run(MainSupport.java:141)[175:org.apache.camel.camel-core:2.10.2] unifiedplatform_530.routestandardtestserviceproxy_0_5.RouteStandardTestServiceProxy.run(RouteStandardTestServiceProxy.java:162)[252:unifiedplatform_530.RouteStandardTestServiceProxy:0.5.0] unifiedplatform_530.routestandardtestserviceproxy_0_5.RouteStandardTestServiceProxy.runJobInTOS(RouteStandardTestServiceProxy.java:267)[252:unifiedplatform_530.RouteStandardTestServiceProxy:0.5.0] org.talend.esb.job.controller.internal.RouteAdapter.run(RouteAdapter.java:78)[223:org.talend.esb.job.controller:5.3.0.SNAPSHOT] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_37] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_37] java.lang.Thread.run(Thread.java:680)[:1.6.0_37] Caused by: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.talend.esb.servicelocator.cxf.internal.ServiceLocatorManagerDelegate. org.apache.cxf.bus.extension.Extension.load(Extension.java:222) org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:199) org.apache.cxf.bus.extension.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:118) org.apache.cxf.bus.extension.ExtensionManagerBus.doInitializeInternal(ExtensionManagerBus.java:142) org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:204) org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:101) org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:109)[108:org.springframework.context:3.0.7.RELEASE] org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:88)[108:org.springframework.context:3.0.7.RELEASE] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:393)[106:org.springframework.beans:3.0.7.RELEASE] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1415)[106:org.springframework.beans:3.0.7.RELEASE] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)[106:org.springframework.beans:3.0.7.RELEASE]	... 44 more Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/tesb/locator/beansForDelegate.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/tesb/locator/beansForDelegate.xml] cannot be opened because it does not exist org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341) org.springframework.beans.factory.xml.XmlBeanDefinitionReader.l...
Story points: 1