Project: talendesb
Issue TESB-8579: ContentBasedRouting: FileNotFoundException when deploy in runtime.
[See *[CXF-4870|https://issues.apache.org/jira/browse/CXF-4870]*, this has been fixed from cxf side] I use TOS 98854. Export demo route ContentBasedRouting and deploy in the runtime (5.3.0.M3-SNAPSHOT_SE_896). Route works as expected but in console I see warning: {code} 04:28:07,052 | WARN | pool-13-thread-6 | ache.cxf.common.logging.LogUtils 443 | 122 - org.apache.cxf.cxf-api - 2.7.3 | Initial attempt to create application context was unsuccessful. org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resourc e [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 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav a:341) at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.internalLoadBeanDefinitions(ControlledV alidationXmlBeanDefinitionReader.java:154) at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.access$000(ControlledValidationXmlBeanD efinitionReader.java:66) at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader$1.run(ControlledValidationXmlBeanDefini tionReader.java:141) at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader$1.run(ControlledValidationXmlBeanDefini tionReader.java:139) at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_20] at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidatio nXmlBeanDefinitionReader.java:139) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav a:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini tionReader.java:174) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationC ontext.java:123)[90:org.springframework.context:3.1.4.RELEASE] at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:322)[123:org.a pache.cxf.cxf-rt-core:2.7.3] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefresha bleApplicationContext.java:131)[90:org.springframework.context:3.1.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationCont ext.java:530)[90:org.springframework.context:3.1.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:444)[9 0:org.springframework.context:3.1.4.RELEASE] at org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:107)[123:org.apache.cxf.cxf- rt-core:2.7.3] at org.apache.cxf.bus.spring.BusApplicationContext$1.run(BusApplicationContext.java:105)[123:org.apache.cxf.cxf- rt-core:2.7.3] at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_20] at org.apache.cxf.bus.spring.BusApplicationContext.(BusApplicationContext.java:105)[123:org.apache.cxf.cxf -rt-core:2.7.3] at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:157)[123:org.apache .cxf.cxf-rt-core:2.7.3] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:148)[123:org.apache.cxf.cxf-rt-cor e:2.7.3] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:122)[123:org.apache.cxf.cxf-rt-cor e:2.7.3] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94)[123:org.apache.cxf.cxf-rt-core :2.7.3] at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:83)[123:org.apache.cxf.cxf-rt-core :2.7.3] at org.apache.camel.component.cxf.CxfEndpointUtils.createBus(CxfEndpointUtils.java:195)[183:org.apache.camel.cam el-cxf:2.10.4] at org.apache.camel.component.cxf.CxfEndpoint.getBus(CxfEndpoint.java:739)[183:org.apache.camel.camel-cxf:2.10.4 ] at org.apache.camel.component.cxf.CxfEndpoint.setupServerFactoryBean(CxfEndpoint.java:316)[183:org.apache.camel. camel-cxf:2.10.4] at org.apache.camel.component.cxf.CxfEndpoint.createServerFactoryBean(CxfEndpoint.java:574)[183:org.apache.camel .camel-cxf:2.10.4] at org.apache.camel.component.cxf.CxfConsumer.(CxfConsumer.java:62)[183:org.apache.camel.camel-cxf:2.10.4] at org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:203)[183:org.apache.camel.camel-cx f:2.10.4] at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65)[178:org.apache.c amel.camel-core:2.10.4] at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80)[178:org.apache.camel.camel-core:2 .10.4] at org.apache.camel.impl.RouteService.warmUp(RouteService.java:133)[178:org.apache.camel.camel-core:2.10.4] at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1986)[178:org.apache.camel. camel-core:2.10.4] at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1914)[178:org.apa che.camel.camel-core:2.10.4] at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1702)[178:org.apache .camel.camel-core:2.10.4] at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1583)[178:org.apache.camel.ca mel-core:2.10.4] at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1444)[178:org.apache.camel.camel-c ore:2.10.4] at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)[180:org.apache.camel.camel-sp ring:2.10.4] at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[178:org.apache.camel.camel-core:2.10.4] at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1412)[178:org.apache.camel.camel-cor e:2.10.4] at cvnb.contentbasedrouting_0_1.ContentBasedRouting$4.doStart(ContentBasedRouting.java:231)[230:cvnb.ContentBase dRouting:0.1] at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[178:org.apache.camel.camel-core:2.10.4] at org.apache.camel.main.MainSupport.run(MainSupport.java:141)[178:org.apache.camel.camel-core:2.10.4] at cvnb.contentbasedrouting_0_1.ContentBasedRouting.run(ContentBasedRouting.java:250)[230:cvnb.ContentBasedRouti ng:0.1] at cvnb.contentbasedrouting_0_1.ContentBasedRouting.runJobInTOS(ContentBasedRouting.java:346)[230:cvnb.ContentBa sedRouting:0.1] at org.talend.esb.job.controller.internal.RouteAdapter.run(RouteAdapter.java:78)[197:org.talend.esb.job.controll er:5.3.0.SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_20] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_20] at java.lang.Thread.run(Thread.java:619)[:1.6.0_20] Caused by: java.io.FileNotFoundException: class path resource [META-INF/cxf/cxf.xml] cannot be opened because it does no t exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav a:328) ... 48 more {code}
Story points: 1